mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-02 06:49:45 +08:00
on_registration, not on_register
This commit is contained in:
@@ -46,11 +46,11 @@ module ProMotion
|
||||
# CocoaTouch
|
||||
|
||||
def application(application, didRegisterForRemoteNotificationsWithDeviceToken:device_token)
|
||||
on_register(device_token, nil) if respond_to?(:on_register)
|
||||
on_registration(device_token, nil) if respond_to?(:on_registration)
|
||||
end
|
||||
|
||||
def application(application, didFailToRegisterForRemoteNotificationsWithError:error)
|
||||
on_register(nil, error) if respond_to?(:on_register)
|
||||
on_registration(nil, error) if respond_to?(:on_registration)
|
||||
end
|
||||
|
||||
def application(application, didReceiveRemoteNotification:notification)
|
||||
|
||||
Reference in New Issue
Block a user