Closed bneigher closed 4 years ago
Hi @bneigher
Maybe intercom.registerForPush();
that retrigger onRegister by requesting token ?
@bneigher Sorry, I think it's not Intercom but:
PushNotificationIOS.requestPermissions()
It triggers register, and it's in onRegister
. If it's registered, why request them ?
Oh man, yea I think thats the problem. I was trying to account for the condition in which the user disables push notifications from the iOS settings by re-asking them if they enable it via our app. Operator error indeed. Thanks @Dallas62
Bug
On production release builds, I've got pretty bad bug where onRegister is spamming my app, destroying my battery life / cpu. I believe I have the correct setup, but perhaps it is indeed operator error? It seems to be happening on all iOS devices.
Environment info
Library version: 3.2.1
Steps To Reproduce
onBeforeLift
callback of myDescribe what you expected to happen:
App.js
PushHolder.js
AppDelegate.h
AppDelegate.m (all methods were added)