Push notification not register to the app on iOS 13

前端 未结 4 1744
别跟我提以往
别跟我提以往 2021-02-19 03:32

I build my app and I put a breakpoint in didRegisterForRemoteNotificationsWithDeviceToken but it\'s not triggered. It works fine on other versions of iOS.

4条回答
  •  孤城傲影
    2021-02-19 04:20

    As what I understood from trying a lot things about this issue is : sometimes iOS forcing the kind of connection to register device token to apple server.

    If you are on WI-FI and didRegisterForRemoteNotificationsWithDeviceToken not called even though you are sure your implemantation of remote notification flow, try switching 3G or 4G. If it is not possible (a test device with no sim) try going to flight mode and activate wireless (which solved our problem).

    If you are on 3G - 4G, try switching to wireless connection (There may be a problem if you are using vpn, proxy etc. disable all of them first).

    If not other Stackoverflow users suggested deleting the app then restarting the device.

提交回复
热议问题