How Do I Track the Install Source from within an Ionic App? - facebook

Marketing specialists keep instructing my client to setup the analytics so that it can track where the user is being referred from so that we can optimize the advertising campaigns.
When I ask them how to setup the tracking correctly they send me to a link for the native Android & iOS google analytics libraries and provide the settings. I respond in kind stating that our app is not built using the native SDK's it is built using the Ionic Framework. They then have no response for this.
I have Google Analytics implemented as well as Facebook analytics. Both systems are actively tracking data. But apparently it is still not tracking the source of which advertising campaign the user originated from and / or installed the app from.
I've tried to find an example of this somewhere and talked to numerous people but from what I can tell it is not possible using the Ionic Framework.
Can anyone provide some insight into this? If this is not possible it seems like a rather large issue with the Ionic Platform that should be made more visible.
Thank you!

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

Phonegap for iphone development on Windows questino re native api

I've spent the day googling all the leads on developing iphone apps on Windows and apart from buying a mac the most suitable route seems to be Phonegap. I cannot find out whether Phonegap gives access to all the native functionality. For example I want to access and manipulate the address book contents. I also want to be able to send text messages programatically and intercept and examine incoming text messages. It would be helpful if someone could confirm whether this can be done with Phonegap.
My understanding is that Phonegap is based on webapps but I am assuming that an app developed with it can run offline for operations that dont require internet access.
Even using Phonegap you will still need access to a mac to actually build your iOS application. This is a restriction that Apple has in place, and to my knowledge there is no way around it.
Phonegap uses a UIWebView to display your application built using HTML, CSS, Javascript etc, but this does not mean that an Internet connection is required for the app to run (so offline apps are definitely possible).
With regards to Phonegap's functionality, details of the Phonegap API can be found on their website. Specific to your needs, I believe phonegap provides access to the device's address book through the contacts API:
http://docs.phonegap.com/en/2.3.0/cordova_contacts_contacts.md.html#Contacts
I don't think Phonegap provides the ability to send SMS messages itself, but many people have developed extensions to add extra functionality to their applications through plugins. The majority of Phonegap iOS plugins can found at the following GitHub repo. The plugin I think you require is the SMSComposer:
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/SMSComposer

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.

Custom iPhone analytic tool

Do you think that if I'll build my own custom analytic tool (Flurry, Pinchmedia) and I'll host that on the same server where I have my data source for the application, will Apple consider this as a thirdparty analytic tool or not? ... Problem is that Flurry and Pinch are being banned from Appstore by the newest T&C ... than I thought that I'll build an open source library that will allow anyone to have their own analytic installed on their server ...
Thanks,
Ondrej
(Full disclosure: I work for Localytics)
What you describe would seem to comply with Apple's new terms. It's what I call 1st-party collection of device data. Or Apple could approve your use 3rd-party analytics, which is more likely if your analytics service isn't using those data to serve ads or selling data to someone else.
But why build it yourself? Localytics announced its Enterprise analytics service last week, which includes 1st-party data collection: http://www.localytics.com/blog. Localytics client libraries for iPhone (and Android and BlackBerry) are already open source.