Я использую Reaction-native-onesignal , и я получаю пуш-токен, равный нулю.
async componentDidMount() {
const { currentState } = AppState
OneSignal.init(ONESIGNAL_APP_ID)
OneSignal.configure();
OneSignal.registerForPushNotifications();
OneSignal.addEventListener('received', this.onReceived)
OneSignal.addEventListener('opened', this.onOpened)
OneSignal.addEventListener('ids', this.onIds)
}
onReceived = (notification) => {
console.log("Notification received: ", notification)
}
onOpened = (openResult) => {
console.log('Message: ', openResult.notification.payload.body)
console.log('Data: ', openResult.notification.payload.additionalData)
console.log('isActive: ', openResult.notification.isAppInFocus)
console.log('openResult: ', openResult)
}
onIds = (device) => {
console.log('Device info: ', device)
}
, кроме того, на сайте onesignal под пользователями я получаю сообщение об ошибке Ошибка библиотеки Google Play Services