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

FCM.requestPermission not working in production

Open wmonecke opened this issue 6 years ago • 1 comments

"react-native": "0.47.1", "react-native-fcm": "^14.0.1",

When in development the permission pop-up does appear.

However, in production when I initialize the App and ask for permission like so:

class App extends Component {
  componentWillMount() {
  
    FCM.requestPermissions();
  }

...

nothing happens. Do I need to specify the parameters?

EDIT: Pop up wont appear on Android. Does appear on iOS.

wmonecke avatar Dec 10 '18 17:12 wmonecke

use FCM.requestPermission(); instead of FCM.requestPermissions();

softmixt avatar Apr 18 '19 11:04 softmixt