davide-scalzo / react-native-mixpanel

A React Native wrapper for Mixpanel tracking
MIT License
455 stars 195 forks source link

iOS Not initalizing #190

Open bpfeiffer187 opened 5 years ago

bpfeiffer187 commented 5 years ago

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

davide-scalzo commented 5 years ago

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 <notifications@github.com> 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.

bpfeiffer187 commented 5 years ago

yes i have

import <RNMixpanel/Mixpanel.h>

@implementation AppDelegate

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

KeshavAggarwal commented 3 years ago

Any updates on this? @davodesign84 @bpfeiffer187