How can I create iOS push notifications that don’t vibrate?

前端 未结 5 1954
终归单人心
终归单人心 2021-01-02 09:29

I know how to create silent push notifications (with playing a sound file that is silent). I would also like to send a push notification that doesn\'t vibrate phone.

5条回答
  •  误落风尘
    2021-01-02 10:03

    [[UIApplication sharedApplication]registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeBadge];
    

    Please try to register for remote notifications using above code applicationDidFinsihLaunching method of AppDelegate

提交回复
热议问题