Thursday, July 4, 2024
HomeiOS Developmentios - Notification Service Extension works when operating Extension however not the...

ios – Notification Service Extension works when operating Extension however not the primary App Goal


I’ve carried out Notification Service Extension in My App, After I created the Notification Service Extension it created an extension (NotificationServiceExtension) in schemes for me, when i choose this extension from schemes, my notification Extension’s didReceive is getting referred to as and notifications are working completely high quality, however when i run the primary App goal the didReceive methodology of NotificationService class isn’t getting referred to as.

I’ve already achieved these:

  1. payload has mutable-content worth as 1
  2. I’ve added the totally different bundle ids for predominant app and extension service. Extension bundle id has the prefix of predominant app
  3. I’ve set App Group for each
  4. Mission, predominant goal and extension has identical deployment goal as 13.0
  5. I’ve enabled background fetch, PushNotification functionality in each targets
  6. NSExtension secret’s current in Notification Extension’s data.plist
  7. Construct Phases has Notification Extension below Goal Dependencies, below Embed Basis Extension appex file is added and “copy solely when putting in” will not be checked.

I’ve tried virtually the whole lot however when i run predominant app goal, the notifcations are obtained however didReceive and all of the code in that isn’t executed, i dont see [modified] within the push notification.

If Extension is working high quality, how am i able to create construct, as a result of when i create construct of my predominant goal once more the modified notification will not be working.

Examine the NotificationServiceExtension which runs high quality in schemes

Examine the scheme setting of predominant goal that i need to run

Observe: I’ve constructed a Flutter app and calling the push license plate from AppDelegate in iOS Native.

Any assistance is appreciated!!



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments