-
-
Notifications
You must be signed in to change notification settings - Fork 137
IOS 11.3 #9
Comments
Do you get a specific error message? Does wrapping lines 31 to 40 with the following solve the issue:
|
Thanks so much! I tried your suggestion and it worked. But I also found on another iPhone with 11.3 it works without the above change. So I am not even sure what the issue is. I am trying to debug now with and without change on Xcode. I will post an update shortly. |
So, did you find anything useful? :) |
I have the same problem when are you going to commit a fix @yasirkula Thanks ;) |
I used the project from unity store and it worked, but why the code is different I downloaded a plugin with same name 1 month ago but when i opened them the code was very different. 🤯 |
I don't update Asset Store versions of my plugins very often (guess I'm lazy), but for NativeShare, there shouldn't be much of a difference, if any. Maybe you downloaded a different plugin like this? |
@yasirkula Yeah maybe i have downloaded another plugin!! And also I have another problem is that it's not working on android. |
Does the share dialog not show at all on Android? If so, are there any error messages on Logcat? After you build your project to Android, can you navigate to PROJECT_PATH/Temp/StagingArea/AndroidManifest.xml and copy&paste its P.S. It would be better to open a new issue the next time to keep things more organized. |
@yasirkula After i build the code removed from the file and still the same should i add it to |
The provider tag must be placed inside Assets/Plugins/Android/AndroidManifest.xml. If your AndroidManifest is located elsewhere, you should move it to Assets/Plugins/Android/. |
Hi! |
Are there any error messages in the console? And are you testing on an iPhone or an iPad? |
Hi, Thanks for your fast reply. Share video. Path:/var/mobile/Containers/Data/Application/4D665B07-56F9-497D-8FEB-BF8CBAAE7A7D/Documents/recording_2018_07_05_16_11_08_554.mov UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) (Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43) |
What happens when you try to share the video? Does the share dialog not show up at all? If the dialog does show up, try sharing without any text/subject and see if it changes anything. Also insert |
Nothing happens.. This is the ShareVideo function: public void ShareVideo(){ This is what I see on the console when the function is called: Share video. Path:/var/mobile/Containers/Data/Application/4291CAD2-E57E-410A-BF57-5303A3EE2237/Documents/recording_2018_07_05_16_41_33_064.mov (Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43) |
You need to add Share(); to the end of the NativeShare object; e.g. |
WOW!! What a rookie's mistake! I apologize!! |
You are welcome! |
A little late, but I had some initial trouble with sharing a simple text file on iOS 11.3, and it turned out that I needed to include the Also, on iOS 13, the code seems to run just great. |
I'm happy to hear that but still a little confused because the mime parameter is not used on iOS: UnityNativeShare/Plugins/NativeShare/NativeShare.cs Lines 125 to 128 in adb3052
|
Haha, I actually changed the file extension I think. I went from a |
Share stopped working with IOS 11.3. The Share dialog box does not appear anymore. Code works fine in older IOS versions.
The text was updated successfully, but these errors were encountered: