Skip to content

On iphone In-app push shows as system notification too. #51

Description

@0sten

I made a small screen which subscribes to alarme's mobile service and prints notification content. pushService?.onPushMessageReceived { payload -> ... }. I've got same handling of pushes as in sample

func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) async -> UIBackgroundFetchResult {
AlarmeeHelper().onNotificationReceived(userInfo: userInfo)
return UIBackgroundFetchResult.newData
}
nonisolated func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
let userInfo = notification.request.content.userInfo
AlarmeeHelper().onNotificationReceived(userInfo: userInfo)
completionHandler([.banner, .list, .badge, .sound])
}
. The issue is that incomming push is handled by my app's code and still is shown by ios. On android handled in app push is not shown by system. Is it an issue?

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions