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 /
  • Bugs /
avatar image
Question by Lucas [not provided] · Jan 19, 2016 at 04:12 PM · unity3dandroid

Unity Android Plugin

Hi all,

I'm having a nasty issue with your Unity Android Plugin.

Whenever I call PlayFabAndroidPlugin.Init("<mySenderID>"); I get a crash and literally no debug messages at all in my adb logcat!

This happens if I login first with PlayFabClientAPI.LoginWithAndroidDeviceID or not, makes no diff!

I'm running on a LGV40010a02e06 (as per adb devices).

Let me know if I can provide anything else to help!

Thanks

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 MarcoWilliamsPF · Jan 21, 2016 at 02:47 AM

What version of the SDK are you on?  
the .Init()  method is for using Push Notifications on Android and is not needed to just use PlayFab and Android.   

From what it sounds like ( and a guess really ), is that your passing your Sender ID,  but you have not setup anything in the Android Manifest to support the use of Push Notifications and that will surely result in a Device Crash when you call .Init() 

If you want to use Push notifications please follow the Tutorial for setting that up.
https://github.com/PlayFab/UnitySDK/tree/master/UnityAndroidPluginSource

If your not using push notifications do not call  the  .Init() method and there is no real need to use the PlayFabAndroid Plugin  all API calls will work without it.

Hope that helps!

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

    No one has followed this question yet.

    Related Questions

    Missing PlayFabSharedSettings at runtime ? 1 Answer

    [Unity] No SDK is installed 1 Answer

    IOS Push-notification not working IOS but works on Android. 2 Answers

    Registering User In Unity Not Working? 1 Answer

    Underscore char being used as separator when parsing event data. 0 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