I am trying to use the Unity Facebook SDK in my game. Currently, I have added very limited code. I have only imported the FB SDK asset. When I run the application on my dev computer, the app runs fine. But, when I push to an Android device and run it, the app crashes on start, with an error stating:
I am not sure if this question is best asked here or in a different channel, but I trying to use the Facebook SDK in my app. Currently, I am just authenticating with it. My code works fine on my machine, but when I push to an Android device, the app dies right at startup and the error is:
Error AndroidRuntime java.lang.RuntimeException: Unable to get provider com.facebook.FacebookContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.FacebookContentProvider" on path:
I don't believe this is an issue with my code, but here is what I had:
using Facebook.Unity;
private void Awake()
{
FB.Init(OnFBInitComplete, OnFBHideUnity);
}
private void OnFBHideUnity(bool isUnityShown)
{
}
private void OnFBInitComplete()
{
}
I think the issue may be with Google's PlayServicesResolver, but I am not sure how to address it? I have tried deleting the PlayServicesResolver folder the FB SDK adds to the project and installing the Google com.google.android.appbundle-1.6.0 but that did not help. Does anyone have any experience resolving this?
I am using: Unity 2021.2.7f1 and the FB SDK version facebook-unity-sdk-9.2.0
thanks
Related
I created a flutter webview application and successfully tested on many emulator android api versions & a physical device running on Android 11. Lastly when I'm testing on my older android 6.0 device , I got an error message as mentioned below.
The webpage https://testsite.com could not be loaded because
net:: ERR_SPDY_PROTOCOL_ERROR
If this error occurred to anybody / if anyone have solution for this, please help.
I found an article on internet said that this "ERR_SPDY_PROTOCOL_ERROR" can occur due to outdated web browser. So I tried to update the chrome browser on my phone. But it didn't solve my problem.
Finally I made it worked by updating the Android System WebView on google playstore. I think the error earlier happened is because of the very old Android System WebView.
There was an error uploading the Android App Bundle. Try again later or contact Google Play developer support if the error persists
I am getting this error and I tried resolving it using multiple things like clearing cookies, using different browser, using different internet connection. Nothing Worked.
Any help will be appreciated.
Thanks
That can happen if the app bundle you're trying to upload has the same version code as an app bundle that has been already uploaded. Double check to see that it has a higher version code.
I am trying to run the flutter code from the following repository
https://github.com/perpetio/clubhouse
It succesfully installs and loads on Android (still working on the firebase authentication)
Unfortunately, on iOS (both simulator and device) I get the error message: " 'AgoraRtcKit/AgoraRtcEngineKit.h' file not found" which itself is thrown by the AgoraRtcEngineKit.h file during import
#import <AgoraRtcKit/AgoraRtcEngineKit.h>
Tried the scarce available solutions (mostly in the context of react-native) however still not working..
Many thanks in advance for your help
Did you make sure to add the iOS permissions? https://pub.dev/packages/agora_rtc_engine#ios
If you did, try this as well: https://pub.dev/packages/agora_rtc_engine#ios-video-cant-show-android-works-fine
I have followed the new Google Firebase guide for Facebook sign-in on Android but I am consistently getting the following error on a particular device.
FirebaseAuth:signInWithCredential failed
com.google.firebase.FirebaseApiNotAvailableException: API: InternalFirebaseAuth.FIREBASE_AUTH_API is not available on this device.
On other devices it seems to work fine. The device is Moto X Play running Android 6.0.1. It also has Google Play Services 9.0.83. I tried a complete uninstall and reinstall with no luck.
This was a bug affecting the 9.0.0 and 9.0.1 versions of the SDK. It has been fixed as of SDK version 9.0.2.
Update the Google repository via the Android SDK manager and then change your gradle dependency to:
compile 'com.google.firebase:firebase-auth:9.0.2'
See incident details here.
As Alfonso says in the comments, there is an issue we are seeing where some users don't have the Firebase Auth API available even though they have Google Play services 9.0.83.
That's a bug - sorry about that - and is being investigated at the moment. If you're seeing it, please raise an issue in the troubleshooting page with any further details of the device where you had the problem.
I'm trying to test my Facebook integration for a FB Canvas game that I'm working on. When I launch the player I see the following message in the console:
loading dll: /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll
Failed downloading /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll
and if I look in the apache logs I see a request for /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll
I have the same problem using the 4.3.x version of the Facebook SDK.
I'm using Unity editor 4.3 and testing in Chrome on OSX.
Am I missing a DLL or a reference in MonoDevelop?
It sounds like you hit build and run for the Unity webplayer. This launches your game in a web browser hosted off your local filesystem. For security purposes, the SDK must be running on Facebook canvas when run in a web browser. You'll need to set up a Facebook app, instructions are here: https://developers.facebook.com/docs/unity
Alternatively, you can test in the Unity editor by hitting the play button.