Closed dhruvmodhapp closed 3 years ago
If you omit AddTarget and then select Moj app, does the recorded video show up properly?
If you omit AddTarget and then select Moj app, does the recorded video show up properly?
Thanks for your quick response. I omit AddTarget, but still not show up with the recorded video. Please check this below video.
this below log i got when tap on share:
2020-11-05 12:08:56.644 2241-2267/? I/ActivityManager: START u0 {act=android.intent.action.SEND typ=video/mp4 flg=0xb080001 cmp=in.mohalla.video/in.mohalla.sharechat.mojvideoplayer.MojVideoPlayerActivity clip={video/mp4 U:content://mypackagename.NativeShareContentProvider/devroot/storage/emulated/0/Android/data/mypackagename/files/recording_2020_11_05_12_02_10_698.mp4} (has extras)} from uid 10995
2020-11-05 12:08:56.645 2241-2267/? I/ActivityManager: Ignoring FLAG_ACTIVITY_NEW_DOCUMENT, launchMode is "singleInstance" or "singleTask"
--------- beginning of main
2020-11-05 12:08:56.653 2241-2267/? D/ActivityTrigger: activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{516c3e in.mohalla.video}
2020-11-05 12:08:56.653 2241-2267/? E/ActivityTrigger: activityStartTrigger: not whiteListedin.mohalla.video/in.mohalla.sharechat.mojvideoplayer.MojVideoPlayerActivity/91
2020-11-05 12:08:56.654 2241-2267/? D/CompatibilityInfo: mCompatibilityFlags - 0
2020-11-05 12:08:56.654 2241-2267/? D/CompatibilityInfo: applicationDensity - 440
2020-11-05 12:08:56.654 2241-2267/? D/CompatibilityInfo: applicationScale - 1.0
2020-11-05 12:08:56.655 2241-2267/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{516c3e in.mohalla.video} is now in focus and seems to be in full-screen mode
2020-11-05 12:08:56.655 2241-2267/? E/ActivityTrigger: activityResumeTrigger: not whiteListedin.mohalla.video/in.mohalla.sharechat.mojvideoplayer.MojVideoPlayerActivity/91
2020-11-05 12:08:56.656 710-740/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2020-11-05 12:08:56.656 2241-2267/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
2020-11-05 12:08:56.670 13326-13326/? D/Unity: Shared on app: in.mohalla.video/in.mohalla.sharechat.mojvideoplayer.MojVideoPlayerActivity
2020-11-05 12:08:56.675 2241-2569/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{516c3e in.mohalla.video} is now in focus and seems to be in full-screen mode
2020-11-05 12:08:56.675 2241-2569/? E/ActivityTrigger: activityResumeTrigger: not whiteListedin.mohalla.video/in.mohalla.sharechat.mojvideoplayer.MojVideoPlayerActivity/91
2020-11-05 12:08:56.679 2241-2569/? D/ActivityManager: Raise procstate to external provider: ProcessRecord{e58374d 5924:com.google.android.gms/u999a7}
2020-11-05 12:08:56.680 14350-14350/? W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@ea050ec
I don't see any meaningful error messages in logcat. I'm afraid I won't be able to resolve this issue. NativeShare simply passes the path of the recorded video in a standardized way (using ContentProvider with ACTION_SEND Intent) and the rest is handled by the target apps (in this case, Moj). Why Moj doesn't behave like other social apps, I really can't tell :/
I don't see any meaningful error messages in logcat. I'm afraid I won't be able to resolve this issue. NativeShare simply passes the path of the recorded video in a standardized way (using ContentProvider with ACTION_SEND Intent) and the rest is handled by the target apps (in this case, Moj). Why Moj doesn't behave like other social apps, I really can't tell :/
Yes. target app I think not handling intent from their activity side. That is the main issue. But I noticed that from Google Photos/By default android gallery apps, can able to share the video at Moj.
I've looked at native Gallery app's source code for a while. The only difference in share functionality that I could find of is that, they share the image/video's existing Gallery url whereas NativeShare generates a url using ContentProvider and then shares it. Since the image/video we are sharing with NativeShare isn't included in the Gallery, there is no Gallery url for these files.
Hello, I am trying to share(on android) video mp4 from my unity app to Moj app with passing
new NativeShare().AddTarget("in.mohalla.video").AddFile(videoPath).Share();
on the share, it opens the Moj app but not with the recorded video. (Any other app like Instagram, Facebook, WhatsApp working fine)
I got this below android log on share:
Any idea to share video on android moj app? @yasirkula