Use Google Map in iPhone app created through PhoneGap - iphone

I need some guidance in matter of using Google map in creating iPhone app that is i m creating through Phonegap.
I have heard that Google maps can be used without internet connection by using Google map API.
My question is how to apply that functionality?
Any help will be appreciated.

Google maps api can not be used offline due to the terms of service.
If you cache the tiles it will be a terms violation. It can be done if you purchase the enterprise edition. Check this for more information on the subject. You might have to use something else if you absolutely must have that functionality.
You should check out openlayers. That might be of help.

Related

Is it possible to gather other apps data in swift?

I'm building an web application with react-native.
In this app I need to gather some information about users.
One of them is how much time they spend on other apps installed on their phone.
I couldn't find any library for this job, so I've decided to write the native code my self.
For android, apparently there is this UsageStatsManager that can help me achieve what I want.
But when I searched for sth similar in ios, I found lots of old forums saying that this is not possible.
But I recently I saw this:
It is asking for permission to gather other apps data. SO IT IS POSSIBLE?
Any suggestion is appreciated. How am I supposed to this?
There is no API by apple itself for retrieving data of third party applications. This is called "Sandboxing" where applications are restricted from changing the device settings or retrieving/changing other apps data. Hence, why iphones are secure.
What you have shown in your screenshots is to track application data for personalised ads and such. This can be achieved using the AppTrackingTransparency framework provided by apple. You can read more about the framework here.
TL;DR - You can use AppTrackingTransparency for personalisation

How to integrate Salesforce in iphone app?

can any one help me in integrating salesforce in my app.I have made account in sales force and also created the remote-acces key.Can anyone tell how to ad objects ,dashboards etc in the iPhone app.I also want to know how to access the data on salesforce .for e.g. i want to get all the custom objects in salesforce and also want to create custom objects from iPhone app.Can anyone guide me in this respect.Any help is appreciated.
There are many ways to do it. I advice you to read carefully and choose the best way to do it.
Here are some links to read about it:
Making Salesforce and PayPal Work Together
SDK Project
Good Documentation and code
Salesforce provides mobiles SDK for iPhone, Android & hybrid platforms.
This SDK has samples on how to start with. There are lot of documentations available.
Basically the SDK helps to authenticate with Salesforce using oAuth, communicating with the objects using RestKit.
Refer the following URLs to start with..
Download the mobile SDK from the following URL.
https://github.com/forcedotcom/SalesforceMobileSDK-iOS
There is a discussion forum
http://boards.developerforce.com/t5/Mobile/bd-p/mobile
API docs
http://forcedotcom.github.com/SalesforceMobileSDK-iOS/Documentation/SalesforceSDK/index.html
Ref:
http://wiki.developerforce.com/page/Mobile_SDK

Google Drive vs Google Doc for iOS?

I have an iOS app that uses the Google Docs List API to access and download spreadsheet data. I've done a basic test with upgrading my Google Docs account to Google Drive, and everything still seems to be working okay.
Based on the answer for this question Google Document List API and Google Drive SDK it looks like things will continue to work for awhile.
Are there any steps that mobile devs should be taking now to move to the new API? My main concern is that most of the developer docs so far are related to web apps and not mobile apps so requirements like registering for the chrome web store don't seem to fit. For example:
"Warning: Apps will not have any API access to files unless the app has been installed in Chrome Web Store. To test an app during development, you must first create a listing and install it."
Any guidance or suggestions would be appreciated.
Check this answer for the rationale behind the Chrome Web Store installation: https://stackoverflow.com/a/10476737/186674
Also, we are considering removing the installation requirement for the development and testing phase, we should have some updates soon.
iOS apps using the Documents List API should now update to using the Google Drive API and the newer Google APIs Client Library for Objective-C.
The new API and library are quite a bit easier to use and more efficient than are the older GData alternatives.

Can I use Google Analytics to sort out the statistics of my iOS App?

Is this a violation of Apple app development rules? In some forums I just saw that thing. So am afraid of getting rejected by AppStore if I use the same. Help me with this please. And if I can't use Google Analytics SDK then which will be the best analytics method I could implement for my App?
This is not legal advice, but, as of right now, no apps have been rejected by Apple for using Google Analytics.
Google has released an official iOS Google Analytics SDK, and there is no record of Apple explicitly forbidding or discouraging its use.
Google Analytics is the most widely used analytics solution around, and unless your operations are based out of Germany, you likely have little to worry about.
I'm not sure about Google Analytics vs Apple rules, but if you're just looking for any way to have stats, have a look at Flurry Statistics - it's quite powerful and completely free. Also I never heard of any legal issues with it (I think you just need to inform users in your app's EULA that you collect data to make the application better).
my name is Peter and I'm with Flurry. Thanks to delirus for pointing out that we have a free service. We support iOS, Android, BlackBerry, WP7 and JavaME. Regarding iOS, we have no knowledge that any app has been rejected during the app submission process due to the inclusion of Flurry Analytics. Over 38,000 companies use Flurry Analytics. You can learn more at www.flurry.com. Thanks, Peter
Google Analytics is under scrutiny in certain regions of this planet because some people believe they are not respecting data protection laws and legislation.
So even if Apple accepts your app you run the risk of somebody filling a complaint with Apple and as result your app could be withdrawn at a later stage.
If you don't know yourself which analytic tool is best for your needs then I assume you have not really thought about what data you really require. Take a moment or two to come up with a list of requirements and then start looking for the tool best matching the needs.

Omniture tracking in iPhone

I want to implement Omniture tracking in an iPhone application. I just have a basic clue on Omniture, that it is third party software that helps you to track keyword searches by your users in your application, and it also helps to present similar searches to the users, and helps reporting. Please correct me if I am wrong as I still digging information on it.
I want to implement the same iPhone form in my application.
I have googled for the information about Omniture tracking, it is scare and there is no help as to how to implement it in an iPhone application.
Can any one guide me how it is done and how to do it iPhone?
I can't give much advice if you're building a native Objective C app, other than to say you should read Omniture's iPhone implementation guide. If you're building an embedded web application, and given that you want to integrate keyword search suggestions, I don't think you have much of a choice, but I'd recommend using their regular JavaScript library the same way you would if you were integrating Omniture into your web site. The js engine on the iPhone is fast enough that you probably won't notice any degradation in performance and the memory footprint's not that big.
It sounds like you only want to use Omniture because it's the one you've heard of. There are other tracking solutions like Flurry and Google Analytics that both offer iOS SDKs and are easier to implement and easier to find documentation about than Omniture.
I recommend Flurry personally as it gives you more device-specific data that Google does.
http://www.flurry.com/product/analytics/index.html
http://code.google.com/apis/analytics/docs/mobile/ios.html