react-native-fcm
react-native-fcm copied to clipboard
FCM.requestPermission not working in production
"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.
use FCM.requestPermission(); instead of FCM.requestPermissions();