react-native-mixpanel
react-native-mixpanel copied to clipboard
iOS Not initalizing
i have followed all the steps and additional steps for iOS.
i then followed mixpanel iOS steps for iOS and added [Mixpanel sharedInstanceWithToken:@"YOUR_API_TOKEN"];
and #import "Mixpanel/Mixpanel.h"
in my app delegate.m file
it doesnt seem to know what to do, where is the token initalized in iOS? I was able to get android working in the mainapplication.java
Have you replaced "YOUR_API_TOKEN" with the token you find in your Mixpanel dashboard?
Davide Scalzo
On Monday, 5 August 2019, 21:46:31 GMT+5:30, bpfeiffer187 <[email protected]> wrote:
i have followed all the steps and additional steps for iOS.
i then followed mixpanel iOS steps for iOS and added [Mixpanel sharedInstanceWithToken:@"YOUR_API_TOKEN"];
and #import "Mixpanel/Mixpanel.h"
in my app delegate.m file
it doesnt seem to know what to do, where is the token initalized in iOS? I was able to get android working in the mainapplication.java
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
yes i have #import <RNMixpanel/Mixpanel.h>
@implementation AppDelegate
-
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSURL *jsCodeLocation;
[Mixpanel sharedInstanceWithToken:@"0c6b7132b984c9a6eb9f09cae2626387"];
i think the real issue i am running into is when i try to important he mixpanel.h file in the app delegate it isnt finding it
Any updates on this? @davodesign84 @bpfeiffer187