Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Trung Dong · Aug 04, 2021 at 01:51 AM · Push Notifications

Push Notification are not set up (iOS)

I follow the tutorial step by step and got the log "Push Registration Successful", as this doc says:

https://docs.microsoft.com/en-us/gaming/playfab/features/engagement/push-notifications/push-notifications-for-ios

But in the Title Player Account, it said: "Push notifications are not set up."

When I use a Cloud Script to test the Push Notification: (my test user Playfab ID is A84D37DA116A478)

server.SendPushNotification({"Recipient" : "A84D37DA116A478", "Message" : "This is a test messeage. Please ignore it!", "Subject" : "A test message"});

The test failed, my device did not get any notification. Here is the response log:

{"Data":{"api":"/Server/SendPushNotification","request":{"Recipient":"A84D37DA116A478","Message":"This is a test messeage. Please ignore it!","Subject":"A test message"},"result":null,"apiError":{"code":400,"status":"BadRequest","retryAfterSeconds":null,"error":"PushNotEnabledForAccount","errorCode":1094,"errorMessage":"PushNotEnabledForAccount","errorHash":null,"errorDetails":null}},"Level":"Error","Message":"PlayFab API request error"}

Does anyone know how to solve this? This is the response I got after called PlayFabClientAPI.RegisterForIOSPushNotification. Hope this can provide more details about the bug.

{"Request":{"ConfirmationMessage":null,"DeviceToken":"d1e3ec554b4211b2ce2adf2c0d47c8d7201318762712a12d6b96c76abb5e23f4","SendPushNotificationConfirmation":null,"AuthenticationContext":null},"CustomData":null}
screen-shot-2021-08-03-at-60255-pm.png (71.5 kB)
Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Trung Dong · Aug 03, 2021 at 11:22 AM 0
Share

P/s: I have completed the Push Notifications settings of the Title, and it is currently Active.

The XCode project also have capability for Remote Push Notification.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Trung Dong · Aug 03, 2021 at 04:35 PM

I have found the cause!

It seems you can not register to Push Notification if logged in as a guest. You need to log in by Facebook or Playfab account etc.

This note should be in the tutorial. It cost me a whole day to find out :(

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    1 Person is following this question.

    avatar image

    Related Questions

    Tournaments question 1 Answer

    no way to opt out of notifications?,No way to opt out of the emails? 2 Answers

    Can send the push notification only while the game is open 1 Answer

    New Apple root certificate for push notifications 1 Answer

    Recieving push notifications when game is force closed 3 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges