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 /
  • API and SDK Questions /
avatar image
Question by tom · Nov 18, 2016 at 04:11 PM · Push Notifications

AndroidDevicePushNotificationRegistrationRequest 409 conflict error

I had a previously working android push notifications setup. However I removed some permissions from the manifest.xml that I felt were unnecessary:

<uses-permissionandroid:name="android.permission.GET_ACCOUNTS"/>

<uses-permissionandroid:name="com.android.vending.BILLING"/>

When running the game again after this, I noticed push notifications weren't getting received anymore. So I replaced the permissions to as they were, deleted the APK and game from device, and reinstalled it. But, I still don't receive the push notifications.

Looking through the console log, when registering for Android notifications I see the following error:

AndroidDevicePushNotificationRegistration request failed: '409: Conflict'

I get a GCM token ok and can login to Playfab ok. One the server side I get an 'invalid parameter' error.

Pushing to other playfab ids works fine.

Could the permission change have caused this? Do you have any advice to how can I restore it to work correctly?

Thanks

Tom

Comment

People who like this

0 Show 0
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

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Brendan · Nov 18, 2016 at 04:44 PM

A 409 usually indicates an attempt to write to data which is already being written to by another operation, so it sounds like the user token for Push may be in a bad state. What are the Title ID and the PlayFab ID for this test?

Comment

People who like this

0 Show 4 · 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
avatar image tom · Nov 18, 2016 at 04:46 PM 0
Share

Hey - The title ID is EE42, and the playfabID is 3F389C3FCF02175B

avatar image Brendan ♦♦ tom · Nov 18, 2016 at 07:48 PM 0
Share

Nothing looks wrong with the account, so let's try this: I've turned on some additional logging for your Title ID. As soon as you get a chance, please re-try this test, and post back here with your results so that I can check that against what appears in the logs.

avatar image Brendan ♦♦ tom · Nov 18, 2016 at 10:27 PM 0
Share

One additional note: I did pull the info for the last failure you had on that call, for that PlayFab ID, and made the call to register that account for Push, which worked fine. If you can reproduce the error though, I can have a look at what other calls are being made around the same time by the client, to see what the conflict is.

avatar image tom Brendan ♦♦ · Nov 21, 2016 at 10:37 AM 0
Share

Hi Brendan, thanks for mentioning 'what other calls are being made around the same time by the client' - I checked on this and there was a SetDisplayName call also being made. So I've sequenced this out and that has resolved the issue. Registration succeeds and push messages are received again.

Thanks for your help.

Tom

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

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Can I use FCM? 1 Answer

    Is it acceptable to put AndroidPushID (and iOSPushID) in TitleData so it can be modified remotely? 2 Answers

    ProfileAPI SetProfileLanguage randomly returning NotAuthorized 1 Answer

    Confirmation that PlayFab Push for Android is Asynchronous? 1 Answer

    Could not find RSA key text in PEM file 1 Answer

    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