Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "App-Install Tracking" by default on iOS #69

Open
hirbod opened this issue Mar 9, 2015 · 5 comments
Open

Support "App-Install Tracking" by default on iOS #69

hirbod opened this issue Mar 9, 2015 · 5 comments

Comments

@hirbod
Copy link

hirbod commented Mar 9, 2015

Hi,

just figured out that android app installs can be tracked automatically trough Facebook (I guess SimpleFacebook provides this by default) while iOS doesn't.
Just need to simply provide this:

- (void)applicationDidBecomeActive:(UIApplication *)application {

  // Logs 'install' and 'app activate' App Events.
  [FBAppEvents activateApp];
}

Could you please integrate this by default in your plugin? I've just added it to my appDelegate.m file but maybe it is enough to put this inside of CordovaFacebook.m

@hirbod
Copy link
Author

hirbod commented Mar 9, 2015

Just to really confirm:
https://github.com/sromku/android-simple-facebook/blob/master/Simple%20Facebook/src/com/sromku/simple/fb/SimpleFacebook.java#L1979-L1987

It is integrated into Android, so it should also be done for iOS. I guess I have some overhead right now, as I've put the code above inside of appdelegate.m with

#import <FacebookSDK/FacebookSDK.h>

Is it safe to put the code mentioned in my first post into you plugin or does it have to be inside of appdelegate?

@hirbod
Copy link
Author

hirbod commented Apr 13, 2015

ping

@Clawg
Copy link

Clawg commented Apr 30, 2015

Did you ever resolve this, I have a similar issue but when I add it in AppDelegate applicationDidBecomeActive Class it does nothing. Adding it to didFinishLaunchingWithOptions see to trigger the activation but I still don't see anything coming through in the Facebook analytics, Android is fine.

@hirbod
Copy link
Author

hirbod commented May 4, 2015

Add

#import <FacebookSDK/FacebookSDK.h>

To your appdelegate.m and the fb code inside of becomeactive as explained above. The stats will take some time (up to 48 Hours) to be triggered. Sems only To work in real AppStore Downloads and work fine

@lorensr
Copy link

lorensr commented Sep 12, 2016

FYI, this is now done automatically by the JS SDK, if you use that: http://stackoverflow.com/a/39441305/627729

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants