Search Unity

NatShare - Free Sharing API

Discussion in 'Assets and Asset Store' started by Lanre, Apr 17, 2018.

  1. dustin_red

    dustin_red

    Joined:
    Feb 7, 2018
    Posts:
    46
    Code (CSharp):
    1. 11-15 12:02:10.785: E/Unity(16181): NatShare Error: Failed to save image to camera roll
    2. 11-15 12:02:10.785: W/System.err(16181): java.io.FileNotFoundException: No such file or directory
    3. 11-15 12:02:10.845: W/System.err(16181):     at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146)
    4. 11-15 12:02:10.845: W/System.err(16181):     at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:611)
    5. 11-15 12:02:10.845: W/System.err(16181):     at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:925)
    6. 11-15 12:02:10.845: W/System.err(16181):     at android.content.ContentResolver.openOutputStream(ContentResolver.java:672)
    7. 11-15 12:02:10.845: W/System.err(16181):     at android.content.ContentResolver.openOutputStream(ContentResolver.java:648)
    8. 11-15 12:02:10.845: W/System.err(16181):     at com.yusufolokoba.natshare.NatShare.saveImageToCameraRoll(NatShare.java:89)
    9. 11-15 12:02:10.845: W/System.err(16181):     at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    10. 11-15 12:02:10.845: W/System.err(16181):     at com.unity3d.player.UnityPlayer.c(Unknown Source)
    11. 11-15 12:02:10.845: W/System.err(16181):     at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
    12. 11-15 12:02:10.845: W/System.err(16181):     at android.os.MessageQueue.next(MessageQueue.java:207)
    13. 11-15 12:02:10.845: W/System.err(16181):     at android.os.Looper.loop(Looper.java:123)
    14. 11-15 12:02:10.845: W/System.err(16181):     at com.unity3d.player.UnityPlayer$e.run(Unknown Source)
     
  2. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    Are you using an older version of NatShare? A few things in the stack trace seem to indicate that you're not on the latest version (1.1f3).
     
  3. Motionpix

    Motionpix

    Joined:
    Dec 13, 2016
    Posts:
    1
    Привет. Меня зовут Антон.
    Я использую ваш плагин NatShare.
    Мне нужно открыть вызов после отправки сообщения. Теперь вызов можно получить, нажав кнопку отмены. То есть я открыл меню для отправки с различными приложениями, но если я нажму «отменить», открытый вызов будет работать, но необходимо, чтобы он был запущен после отправки.
     
  4. RGBTonyKol

    RGBTonyKol

    Joined:
    Oct 28, 2016
    Posts:
    7
    Hello. My name is Anton.
    I use your NatShare plugin.
    I need an open call after the message has been sent. Now a call can be received by pressing the cancel button. That is, I opened the menu for sending with various applications, but if I press cancel, the open call will work, but it is necessary that it be triggered after sending.
     
  5. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    I'm not sure I understand. What do you mean by needing an open call after the message has been sent? What message?
     
  6. dustin_red

    dustin_red

    Joined:
    Feb 7, 2018
    Posts:
    46
    @Lanre Yup that was it! Upgrading from 1.1f1 to 1.1f3 fixed it. Thank you!
     
  7. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    Perfect!
     
  8. RGBTonyKol

    RGBTonyKol

    Joined:
    Oct 28, 2016
    Posts:
    7
    @Lanre I demonstrated it in the video. I did not send anything, but the callback worked.

     
  9. RGBTonyKol

    RGBTonyKol

    Joined:
    Oct 28, 2016
    Posts:
    7
    @Lanre There is another question. Is it possible to implement an overload for the image and text? The documentation is written only about the media file and text.
     
  10. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    This is expected behaviour. On Android, there is no reliable way to know whether the user actually shared or canceled. This is why the ShareCallback doesn't have a `bool` to indicate this. You can check the NatShare sources for more info on this.
    The current version doesn't support image with text or media with text. We did this on purpose, because a lot of apps will reject the sharing payload if it has some text.
     
  11. RGBTonyKol

    RGBTonyKol

    Joined:
    Oct 28, 2016
    Posts:
    7
    @Lanre
    Thanks for the help:)
     
    Lanre likes this.
  12. roshan090

    roshan090

    Joined:
    Mar 20, 2018
    Posts:
    35
    can someone please specify how to take screenshot by using thin plugin. i am stuck in it :/
     
  13. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    NatShare doesn't take screenshots. Unity has a screenshot function.
     
  14. roshan090

    roshan090

    Joined:
    Mar 20, 2018
    Posts:
    35
    sorry idk how to take screenshot. i am nob in unity. you should also provide your screenshot function to make thing more easy. thanks
     
  15. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    Taking screenshots is out of the scope of NatShare which is why it isn't included. Search through Unity's documentation for the ScreenCapture class.
     
    roshan090 likes this.
  16. roshan090

    roshan090

    Joined:
    Mar 20, 2018
    Posts:
    35
    IEnumerator captureScreenshot()
    {
    yield return new WaitForEndOfFrame();
    string path = "Screenshots/"
    + "_" + screenshotCount + "_" + Screen.width + "X" + Screen.height + "" + ".png";

    Texture2D screenImage = new Texture2D(Screen.width, Screen.height);
    //Get Image from screen
    screenImage.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
    screenImage.Apply();
    //Convert to png
    byte[] imageBytes = screenImage.EncodeToPNG();

    //Save image to file
    //System.IO.File.WriteAllBytes(path, imageBytes);


    NatShare.Share(screenImage);

    }


    share not working can you please tell me where i went wrong ?
    Thanks
     
  17. roshan090

    roshan090

    Joined:
    Mar 20, 2018
    Posts:
    35
    Hurrah !working for me. Really nice asset. i am going to give 5 stars in Assets Store. :)
     
    Lanre likes this.
  18. roshan090

    roshan090

    Joined:
    Mar 20, 2018
    Posts:
    35
    I just wast to ask a lil question if i convert texture2d to png then what will be the share function work fast for me? share function is little freezy for my real device. hope you understand what i am taking.
     
  19. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    The Share function converts the texture to PNG before sharing. So calling EncodeToPNG before sharing will only make it slower.
     
    roshan090 likes this.
  20. KhaledDebuch

    KhaledDebuch

    Joined:
    Dec 8, 2018
    Posts:
    3
    Hi there!
    Can I filter instagram in list of native share for iOS ?
     
  21. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    This isn't possible. But you can clone the source project to explore how to do it in native code.
     
    KhaledDebuch likes this.
  22. Yincany

    Yincany

    Joined:
    Dec 10, 2018
    Posts:
    1
    Ei.. I have the same error.. I fix it with this code.

    path = path.Substring(7, path.Length - 7);

    You have to delete this characters from the string "file:///"
     
    Lanre likes this.
  23. ElliotCurtis

    ElliotCurtis

    Joined:
    Nov 26, 2018
    Posts:
    20
    Hi,
    I am struggling to get Natshare to send my captured gif. It just sends the message on its own.
    Here is my line of sharing code:

    string path = "file:///Android/data/com.publisher.game/files/gameplay.gif";
    NatShare.Share(path);

    That's the full path to the saved gif, but I've tried every variation of it I can.

    Am I doing something wrong?
     
  24. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    This path doesn't look correct. There's typically a "storage/emulated" or "storage/0" in the path. How exactly did you derive this path?
     
  25. ElliotCurtis

    ElliotCurtis

    Joined:
    Nov 26, 2018
    Posts:
    20
    I found the path by browsing the phone. I can't get debugging working on it so I'm using trial and error!

    Oh, and the file is saved with ProGIF, not NatRecorder, which may explain the difference?
     
  26. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    Viewing the file in the file explorer might not be the exact path. Use adb to try to find the path. It doesn't matter whether the GIF was created with NatCorder or ProGIF.
     
  27. splitter77

    splitter77

    Joined:
    Feb 25, 2018
    Posts:
    14
    hi, it's possible to share multiple image ?
     
  28. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    Not at the same time, no.
     
  29. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Hi, is it possible to share a text (for facebook post) and image at the same time?
    What I'm interested in is facebook capabilities. Does the same Facebook SDK limitations apply? E.g. image only by URI?
     
  30. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    This isn't possible. We removed it because it didn't work for a whole lot of receiving apps (it's up to the receiving app to decide what to do with the sharing payload).
    I don't believe so. NatShare uses the OS'es native share sheet, so you should be able to share an image to FB.
     
  31. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    So it's possible only to share either of those?
    - Text + Link
    - Link
    - Image + Link

    Or it's only the image and that's it?
     
  32. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    You can share a text with a link. You can also share a link. You can't share a Texture2D with a link.
     
    xVergilx likes this.
  33. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Sounds reasonable, since Facebook requires an URI.
    Ok, thanks :)
     
    Lanre likes this.
  34. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    345
    NatShare.Share (plain text / haven't tested texture2d) doesn't call the callback on iOS (it only works on Android).
     
  35. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    I've created an issue for this.
     
  36. Trescend

    Trescend

    Joined:
    Mar 17, 2017
    Posts:
    1
    I have these error when compiling in Xcode 10.1

    Undefined symbols for architecture arm64:

    "_NSFreeThumbnail", referenced from:

    _NatShareBridge_FreeThumbnail_m3455030485 in Bulk_Assembly-CSharp_2.o

    _NatShareiOS_NatShareU_INatShare_GetThumbnail_m1260432307 in Bulk_Assembly-CSharp_2.o

    "_NSGetThumbnail", referenced from:

    _NatShareBridge_GetThumbnail_m3956710923 in Bulk_Assembly-CSharp_2.o

    _NatShareiOS_NatShareU_INatShare_GetThumbnail_m1260432307 in Bulk_Assembly-CSharp_2.o

    "_NSSaveMediaToCameraRoll", referenced from:

    _NatShareBridge_SaveToCameraRoll_m59979481 in Bulk_Assembly-CSharp_2.o

    _NatShareiOS_NatShareU_INatShare_SaveToCameraRoll_m3763879326 in Bulk_Assembly-CSharp_2.o

    "_NSSaveImageToCameraRoll", referenced from:

    _NatShareBridge_SaveToCameraRoll_m3447135614 in Bulk_Assembly-CSharp_2.o

    _NatShareiOS_NatShareU_INatShare_SaveToCameraRoll_m166184622 in Bulk_Assembly-CSharp_2.o

    "_NSShareMedia", referenced from:

    _NatShareBridge_Share_m2959535664 in Bulk_Assembly-CSharp_2.o

    "_NSShareImage", referenced from:

    _NatShareBridge_Share_m719909040 in Bulk_Assembly-CSharp_2.o

    "_NSShareText", referenced from:

    _NatShareBridge_Share_m2084769199 in Bulk_Assembly-CSharp_2.o

    _NatShareiOS_NatShareU_INatShare_ShareText_m1502312364 in Bulk_Assembly-CSharp_2.o

    "_NSRegisterCallbacks", referenced from:

    _NatShareiOS__ctor_m2243014951 in Bulk_Assembly-CSharp_2.o

    _NatShareBridge_RegisterCallbacks_m306130258 in Bulk_Assembly-CSharp_2.o

    ld: symbol(s) not found for architecture arm64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  37. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    Please use code tags for long text outputs like this. Check that you are not missing the iOS libraries (libNatShare.a). Try deleting NatShare from your project and reimporting it from the asset store.
     
  38. Colin_MacLeod

    Colin_MacLeod

    Joined:
    Feb 11, 2014
    Posts:
    334
    Prior to using NatShare, I used this asset: native-share-for-android-ios-112731

    With that one, you can specify a subject text when sharing photos. Is this not possible with NatShare?
     
  39. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    This is not supported by NatShare unfortunately. The big issue here is that most apps will not actually accept both text and media; they'd either choose one or just reject the sharing payload entirely.
     
  40. Colin_MacLeod

    Colin_MacLeod

    Joined:
    Feb 11, 2014
    Posts:
    334
    Hi Lanre - thanks for the response.

    I know this is true for the text field, but that other share lib has a subject field that does seem to work well with photo media. In that asset, if you specify the text field blank the subject is still shared (e.g. on Instagram and Facebook)

    This may be the text that comes across as "File from iOS" on NatShare?
     
  41. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    I'm considering a draft front-end API to add support for this. But I won't be able to get this implemented soon.
     
  42. Colin_MacLeod

    Colin_MacLeod

    Joined:
    Feb 11, 2014
    Posts:
    334
    Cool - sounds great!
     
  43. Spookytooth3D

    Spookytooth3D

    Joined:
    Oct 31, 2013
    Posts:
    73
    I am a new comer to NatCorder and NatShare, as I have been looking for a non-buggy alternative method of recording and saving videos to my iOS media library. Are there any tutorials that you guys would be so kind to direct me to? So far, I have little clue where to start, and none of the examples save down to the device, although it appears that ReplayCam is soooo close, the script would only need an adjustment or two. Any help is much appreciated.
     
  44. unity_noMf5kG54sxntg

    unity_noMf5kG54sxntg

    Joined:
    Nov 18, 2018
    Posts:
    4
    Hello. I bought NatCoder.
    And I add this code at RecordButton.cs
    Code (CSharp):
    1.  
    2.            void IPointerUpHandler.OnPointerUp (PointerEventData eventData) {
    3.             // Reset pressed
    4.             pressed = false;
    5.             OnReplay("/storage/emulated/Android/data/com.example.helloAR/files/hoge.mov"); //add method
    6.  
    7.         }
    8.  
    9.        // add this method
    10.         void OnReplay(string path)
    11.         {
    12.             Debug.Log("Saved recording to: " + path);
    13.             // Playback the video
    14.             #if UNITY_ANDROID
    15.                 NatShareU.NatShare.SaveToCameraRoll(path);
    16.                 Handheld.PlayFullScreenMovie(path);
    17.             #endif
    18.         }
    but I can't save movie.
    What Should I do?

    I use only android. thanks.
     
  45. amack2u

    amack2u

    Joined:
    Dec 22, 2016
    Posts:
    15
    Hello I purchased plugin on asset store both natcorder and also natshare...recording works fine. I cannot save to camera roll however returns false...thats first problem...second problem app crashes when finished sharing or cancel sharing both closes app...here is locat with relevant parts...plese help. Android 8.0.0 api 26

    Code (CSharp):
    1. 04-10 04:48:42.850 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    2. 04-10 04:48:42.855 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    3. 04-10 04:48:42.857 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    4. 04-10 04:48:42.860 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    5. 04-10 04:48:42.862 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    6. 04-10 04:48:42.864 23531 23640 I UnityIAP: Package name: com.tubbub.feelgoodok
    7. 04-10 04:48:42.866 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    8. 04-10 04:48:42.872 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    9. 04-10 04:48:42.881 23531 23640 I UnityIAP: Package name: com.tubbub.feelgoodok
    10. 04-10 04:48:42.990 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    11. 04-10 04:48:42.994 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    12. 04-10 04:48:43.000 23531 23640 I UnityIAP: Package name: com.tubbub.feelgoodok
    13. 04-10 04:48:43.001 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    14. 04-10 04:48:43.115 23531 23640 I UnityIAP: Package name: com.tubbub.feelgoodok
    15. 04-10 04:48:43.116 21988 22007 I Finsky  : [482] enr.b(12): com.tubbub.feelgoodok: Account from first account - [3HkUc2uYkjjPorq3BiyP9hF49UM]
    16. 04-10 04:48:43.379  3347  8620 D GameManagerService: identifyGamePackage. com.tubbub.feelgoodok
    17. 04-10 04:48:43.379  3347  8620 D GamePkgDataHelper: getGamePkgData(). com.tubbub.feelgoodok
    18. 04-10 04:50:06.900 23531 23670 I ACodec  : app-name : com.tubbub.feelgoodok
    19. 04-10 04:50:09.090 23531 23549 I Unity   : Saved recording to: /storage/emulated/0/Android/data/com.tubbub.feelgoodok/files/recording_2019_04_10_04_50_06_846.mp4
    20. 04-10 04:50:09.397  3347  4307 I CodecSolution: pid(23531) pkg(com.tubbub.feelgoodok)
    21. 04-10 04:50:09.406  3347  7606 I CodecSolution: Top : com.tubbub.feelgoodok
    22. 04-10 04:50:09.406  3347  7606 D SCPMHelper: getPackageInfo(com.tubbub.feelgoodok)
    23. 04-10 04:53:30.260  3347  4874 D GameManagerService: identifyForegroundApp. com.tubbub.feelgoodok
    24. 04-10 04:53:30.260  3347  4874 D GamePkgDataHelper: getGamePkgData(). com.tubbub.feelgoodok
    25. 04-10 04:54:06.271  3347  8620 D GameManagerService: identifyGamePackage. com.tubbub.feelgoodok
    26. 04-10 04:54:06.271  3347  8620 D GamePkgDataHelper: getGamePkgData(). com.tubbub.feelgoodok
    27. 04-10 04:54:06.375  3347  8620 D GameManagerService: identifyGamePackage. com.tubbub.feelgoodok
    28. 04-10 04:54:06.378  3347  8620 D GamePkgDataHelper: getGamePkgData(). com.tubbub.feelgoodok
    29. 04-10 04:54:20.472 26771 26771 W ResolverActivity: mLaunchedFromPackage = com.tubbub.feelgoodok
    30. 04-10 04:54:20.942  3347  5162 V WindowManager: Relayout Window{fcc3cb9 u0 com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity}: viewVisibility=0 req=1440x2960 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#80810580 pfl=0x1020000 fmt=-3 wanim=0x10302fd vsysui=0x1710 sysuil=true needsMenuKey=2 colorMode=0 naviIconColor=0}
    31. 04-10 04:54:21.950  3347  4721 V WindowManager: Relayout Window{fcc3cb9 u0 com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity}: viewVisibility=0 req=1440x2960 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#80810580 pfl=0x1020000 fmt=-3 wanim=0x10302fd vsysui=0x1716 sysuil=true needsMenuKey=2 colorMode=0 naviIconColor=0}
    32. 04-10 04:54:37.284 23531 23531 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@577d910 nm : com.tubbub.feelgoodok ic=null
    33. 04-10 04:54:37.286  3347  4721 V InputMethodManagerService: windowGainedFocus : reason=WINDOW_FOCUS_GAIN client=android.os.BinderProxy@b805367 inputContext=null missingMethods= attribute=android.view.inputmethod.EditorInfo@a161c66 nm = com.tubbub.feelgoodok controlFlags=#101 softInputMode=#20 windowFlags=#80810580
    34. 04-10 04:54:37.303  3347  4302 D GameManagerService: handleForegroundChange(). pkgName: com.tubbub.feelgoodok, clsName: com.unity3d.player.UnityPlayerActivity,FgActivityName:com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity
    35. 04-10 04:54:37.303  3347  5783 D MARsPolicyManager: onPackageResumedFG pkgName = com.tubbub.feelgoodok, userId = 0
    36. 04-10 04:54:37.304  3347  4302 D GameManagerService: notifyResumePause(). pkg: com.tubbub.feelgoodok, type: 4, isMinimized: false, isTunableApp: false
    37. 04-10 04:54:37.454 23531 23531 E CRASH   : pid: 23531, tid: 23531, name: Hub.FeelTheVibe  >>> com.tubbub.feelgoodok <<<
    38. 04-10 04:54:37.456 23531 23531 E CRASH   :      #00  pc 005162e8  /data/app/com.tubbub.feelgoodok-YNCf4dvWWwdtu_EzRK1FVQ==/lib/arm/libunity.so
    39. 04-10 04:54:37.456 23531 23531 E CRASH   :      #01  pc 005571e0  /data/app/com.tubbub.feelgoodok-YNCf4dvWWwdtu_EzRK1FVQ==/lib/arm/libunity.so
    40. 04-10 04:54:37.456 23531 23531 E CRASH   :      #02  pc 00943c28  /data/app/com.tubbub.feelgoodok-YNCf4dvWWwdtu_EzRK1FVQ==/lib/arm/libunity.so
    41. 04-10 04:54:37.540  3347  5162 I WindowManager: WIN DEATH: Window{fcc3cb9 u0 com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity}
    42. 04-10 04:54:37.540   660   660 I SurfaceFlinger: id=180 Removed SurfaceView - com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity@f53a6cd@0#0 (1/9)
    43. 04-10 04:54:37.540   660   660 I SurfaceFlinger: id=181 Removed Background for - SurfaceView - com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity@f53a6cd@0#0 (0/9)
    44. 04-10 04:54:37.541  3347  7606 I ActivityManager: Process com.tubbub.feelgoodok (pid 23531) has died: fore TOP (364,2074)
    45. 04-10 04:54:37.544  3347  7606 W ActivityManager: Force removing ActivityRecord{a2fb81d u0 com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity t3444}: app died, no saved state
    46. 04-10 04:54:37.545  3347  5162 I WindowManager: Destroying surface Surface(name=com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2483 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:985 com.android.server.wm.WindowState.removeImmediately:2397 com.android.server.wm.WindowState.removeIfPossible:2586 com.android.server.wm.WindowState.-wrap1:0 com.android.server.wm.WindowState$DeathRecipient.binderDied:3131 android.os.BinderProxy.sendDeathNotice:841 <bottom of call stack>
    47. 04-10 04:54:37.545   660  1195 I SurfaceFlinger: id=182 Removed com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity#1 (1/8)
    48. 04-10 04:54:37.548   660   660 I Layer   : id=180 onRemoved SurfaceView - com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity@f53a6cd@0#0
    49. 04-10 04:54:37.549   660   660 I Layer   : id=181 onRemoved Background for - SurfaceView - com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity@f53a6cd@0#0
    50. 04-10 04:54:37.549   660   660 I Layer   : id=182 onRemoved com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity#1
    51. 04-10 04:54:37.550   660  1195 I SurfaceFlinger: id=182 Removed com.tubbub.feelgoodok/com.unity3d.player.UnityPlayerActivity#1 (-2/8)
    52. 04-10 04:54:37.733  3347  4551 W MultiScreenManagerService: moveTaskBackToDisplayIfNeeded(): root activity or app is null, task=TaskRecord{cec7724d0 #3444 A=com.tubbub.feelgoodok U=0 StackId=1 sz=0}, rootActivity=null
    53. 04-10 04:54:38.003  4410  5074 D ApplicationPackageManager: updateItemMetaDataForFixedIconScale: package: com.tubbub.feelgoodok
    54. 04-10 04:54:38.003  3347  5162 D PackageManager: getSelectedMetaData : packageName(com.tubbub.feelgoodok) or Metadata strings {[Ljava.lang.String;@58bd75b}
    55. 04-10 04:54:38.003  4410  5074 I ApplicationPackageManager: load=com.tubbub.feelgoodok, bg=144-144, dr=168-168, forDefault=true, density=0
    56. 04-10 04:54:38.007  4410  5074 I ApplicationPackageManager: load=com.tubbub.feelgoodok-contain, bg=234-234, dr=168-168
     
  46. GreyPoupwn

    GreyPoupwn

    Joined:
    Dec 6, 2016
    Posts:
    10
    Here's a use-case for you:

    I use Natcorder to record a video, which I then save to the camera roll using NatShare. I would like to get one or more of the following:

    • URL Path to the video on the camera roll
    • The LocalID of the PHAsset which has been saved
    My end goal is to take my video recording and use Instagram's Custom URL scheme to directly open a photo/video in the Instagram Feed Share UI. Instagram's Native Share Sheet functionality is lacking (Instagram's fault, not yours!), with no support for filters or editing.
     
  47. adre

    adre

    Joined:
    Mar 28, 2014
    Posts:
    38
    Hi Lanre, i'm considering to buy natshare for a client's project.
    I need to be able share on Facebook (only there) either a video which the user will upload from the app to facebook, or a link of a webpage where the user uploaded the video.
    -> I need the share call to add hashtags (or mentions) to the post.

    Is that possible with natshare and/or implementable?
     
  48. glutvort

    glutvort

    Joined:
    Apr 13, 2019
    Posts:
    31
    unity 2019.3.0a3
    Help pls
     

    Attached Files:

  49. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    In the OnReplay method, simply call NatShare.SaveToCameraRoll with the path to the recorded video. Check the NatShare README for any clarifications.
     
  50. Lanre

    Lanre

    Joined:
    Dec 26, 2013
    Posts:
    3,973
    If you are on Android 9, it could be related to this issue. I'll be working on a fix sometime next week.