-
-
Notifications
You must be signed in to change notification settings - Fork 137
[Question] The posting process on Android is not completed in the app. Is that the spec? #137
Comments
To check whether or not this is an issue on Facebook-side, can you try sharing to Facebook from other apps installed on your device and see if some or all of them also encounter the same issue while sharing to Facebook? |
Hi yasirkula, |
I meant sharing something from e.g. Twitter to Facebook, Facebook to Twitter, WhatsApp to Facebook and etc. Do they also suffer from this issue? |
Hi @yasirkula ,
Sharing from Instagram doesn't have any problem. |
I see. Does running this code with true or false at Start/Awake make any difference: using( AndroidJavaClass ajc = new AndroidJavaClass( "com.yasirkula.unity.NativeShare" ) )
ajc.SetStatic<bool>( "alwaysUseCustomShareDialog", true ); |
I added the above code and tested it with both true/false.
I guess that code addition is probably a temporary fix, but it seems to work fine when putting true! |
I have added the code with "true" and continue testing, but it seems that sometimes the target app doesn't launch.
I'm not sure under what conditions the behavior differs, so I'll do some more testing. |
I'll take a look at it when I get the chance, thanks for confirming it. |
Does replacing Plugins/NativeShare/Android/NativeShare.aar with the one inside this zip archive make any difference when you use/not use the code I've posted the last time? |
Description
First of all, I would like to thank you for creating a great library.
Well, I added a function that takes a screenshot, resizes it, and then posts the image to another app.
It works fine without crashing or anything.
However, when I tested it on Facebook and Twitter, the behavior was different depending on the OS as follows
IOS
After posting, it appears the posting indication in my app, and after a few seconds, the posting is completed and the modal closes.
Android
After posting, the modal closes immediately without the posting indication in my app.
In the case of Android, even if I check the post on my desktop after posting, the post does not appear for any length of time.
When I launched the target app from the device where I posted, the posting process started and after waiting for a few seconds, the posting was completed.
The point is that the posting process on Android is only up to the point where it is put into the queue of the target app, and it is not done until I launch the app from the same device.
Is that the spec on Android?
It probably doesn't matter, but I'll post my code in case it does.
Thanks,
The text was updated successfully, but these errors were encountered: