Looking for ?

Translate

Missing potentially required entitlement, Your app uses Apple Push Notification service (APNs) registration APIs, but the APS Environment Entitlement is not included

 Hello tech lovers, if you are encountering this error: TMS-90078: Missing potentially required entitlement - Your app, or a library that’s included in your app, uses Apple Push Notification service (APNs) registration APIs, but the APS Environment Entitlement isn’t included in the app signature’s entitlements.



READ MORE:

Foods you can be eating without getting fat


SOLUTION: THESE 3 STEPS MUST BE ACCOMPLISHED


Let us update the Entitlements.plist file with a missing information

1. Open this this file(If exist, if not create it): in your flutter project and add the missing keywords and its string at the middle of xml 

 ProjectFolder/ios/runner/Entitlements.plist


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

    <key>aps-environment</key> <!-- Add this -->

    <string>production</string> <!-- And this -->

</dict>

</plist>


2. Update your info.plist file for necessary permissions
Open  ProjectFolder/ios/runner/Info.plist

    <key>NSUserNotificationUsageDescription</key>
        <string>Your message explaining why you need notifications</string>
    <key>UIBackgroundModes</key>
    <array>
    <string>fetch</string>
    <string>remote-notification</string>
    </array>

3. Lets Make sure you have Notification capability added in your xcode
* Open your Xcode, Click open project, navigate into ios folder of your project and select Runner.xcworkspace

 ProjectFolder/ios/Runner.xcworkspace

* At the left side, under TARGETS, select Runner

* In the middle of the main window, click on Signing & Capabilities

* Look below to see if you have Push Notification capability added.
If yes, all is good, it No click on + Capability and search for Push notification and add it

Once done, clean your build folder from Product at menu bar,
Then Achive again and Distribute. 



SHARE THIS POST

About Wakabia

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment