ios - Use of unresolved identifier 'FIRInstanceIDAPNSTokenTypeSandbox' -
i'm trying migrate apps google cloud messaging (gcm) firebase cloud messaging (fcm). doc says need put function
func application(application: uiapplication,didregisterforremotenotificationswithdevicetoken devicetoken: nsdata) { firinstanceid.instanceid().setapnstoken(devicetoken, type:firinstanceidapnstokentypesandbox) }
but unresolved identifier on firinstanceidapnstokentypesandbox
import firebase
, firebaseinstanceid
, firebasemessaging
. know why? appreciate kind of clue u guys. thanks!
for swift, have use firinstanceidapnstokentype.sandbox instead of firinstanceidapnstokentypesandbox.
it works me.
Comments
Post a Comment