React-native-fcm: getFCMToken returns undefined in IOS

Created on 15 Dec 2016  路  8Comments  路  Source: evollu/react-native-fcm

RN 0.39 running in IOS10 simulator. Also tried with RN 0.33 but got same result.

Requesting permissions and sending data from client to server work (request returns code 200), yet i can't getFCMToken and FCM.on('refreshToken') to log the client token. Local notification also doesn't work.

Interesting alerts in the console:

  • "Remote notifications are not supported in the simulator"
  • "found no keychain client entitlements"

Any help is greatly appreciated!

Most helpful comment

u need to have a valid xcode account as well and .entitlements file

All 8 comments

"Remote notifications are not supported in the simulator"

push only works on real device

"found no keychain client entitlements"

u need GoolgeService-Info.plist

@sibelius GoogleService-Info.plist is there. Is there anything that i have to edit in my project's entitlements file which wasn't specified in the readme?

fcm

u need to have a valid xcode account as well and .entitlements file

@sibelius Thank you! It worked amazingly! 馃憤 馃挴

Shouldn't this be specified anywhere in the readme?

@ethan37 send a PR to improve the README and the docs

@sibelius https://github.com/evollu/react-native-fcm/pull/239 :)

tks

You guys just put food for me on my table :), thank you very much, wish i could just contribute at-least via money, if not code; a link to donate would help 馃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xavieramoros picture xavieramoros  路  4Comments

KBepo picture KBepo  路  4Comments

holyxiaoxin picture holyxiaoxin  路  4Comments

Keksike picture Keksike  路  5Comments

404sand808s picture 404sand808s  路  5Comments