react-native-mixpanel icon indicating copy to clipboard operation
react-native-mixpanel copied to clipboard

iOS Not initalizing

Open bpfeiffer187 opened this issue 6 years ago • 3 comments

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

bpfeiffer187 avatar Aug 05 '19 16:08 bpfeiffer187

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.

davide-scalzo avatar Aug 05 '19 17:08 davide-scalzo

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

bpfeiffer187 avatar Aug 05 '19 17:08 bpfeiffer187

Any updates on this? @davodesign84 @bpfeiffer187

KeshavAggarwal avatar Mar 16 '21 16:03 KeshavAggarwal