Closed YahiaJabeur closed 5 years ago
resolved.
solution : this piece of code should be added at the end of the file AppDelegate.m
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { Mixpanel *mixpanel = [Mixpanel sharedInstance]; [mixpanel.people addPushDeviceToken:deviceToken]; }
Hi Yahia,
I'm also having this problem. Did you add all the above to your AppDelegate.m ?
Thanks, Anna
@abeddow91 Yes, please make sure to add it at the end of the file
Hiiiii, I integrated the react-native-mixpanel library to my project. RN 59.5
I followed all steps in the iOS official documentation
Should I add this code to AppDelegate.m ???? `- (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions {
}`
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { Mixpanel *mixpanel = [Mixpanel sharedInstance]; [mixpanel.people addPushDeviceToken:deviceToken]; }
And can someone plz confirm me if I need to send the device token id to mixpanel ` import DeviceInfo from 'react-native-device-info';
one more question, is it ok I use
Automatically manage siging` to test on my real device dev mode???