Max MacLeod
Max MacLeod

Reputation: 26672

Replacement for UAPush method appReceivedRemoteNotification?

In attempting to upgrade to Urban Airship 8.0.1, the method appReceivedRemoteNotification is no longer available.

MyClass.swift:55:23: Value of type 'UAPush' has no member 'appReceivedRemoteNotification'

UrbanAirship Library 7.3.0 to 8.0.0 docs do not mention the method.

Neither is mentioned in the iOS Changelog.

What is the replacement to appReceivedRemoteNotification such that a migration to 8.0.1 can be achieved?

Upvotes: 0

Views: 188

Answers (1)

ralepinski
ralepinski

Reputation: 1766

Its mentioned in our migration guide and you always check the appledocs.

We now have 2 methods for when a notification is received:

  • receivedForegroundNotification:completionHandler:
  • receivedBackgroundNotification:completionHandler:

And 1 method when a notificaiton is opened or notification action button is tapped:

  • receivedNotificationResponse:completionHandler:

Upvotes: 1

Related Questions