Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[Released] Android Native Pro

Discussion in 'Assets and Asset Store' started by stanislav-osipov, Sep 5, 2018.

  1. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    @viking81 thx for the update, If I will have any info towards that issue I will definitely share it with you.

    Those are good questions, and I will like it would make sense to make a video about it.
    You can always start SilentSignIn. A good practice is to do this on your app start and once an application is restored from the background.
    Since this is a silent flow user won't see anything. If silent sing in is failed, that means the user isn't currently connected and you can display a dedicated SingIn button.
    The fact that you see something during scene change - probably you have some code in the or Start or Awake function.
    If there is some unwanted behavior you don't really understand feel free to share the log.


    Hello, without seeing the device log and your implementation I can only guess :) Would you be able to share it?
     
  2. viking81

    viking81

    Joined:
    Jul 13, 2019
    Posts:
    14
    Ok, thanks for answering!

    Is it possible to use SilentSignIn in a script, which is not placed in the first Scene (attached to GameObject as I use now), but act independently and simply runs as stated in 'Script Execution Order', and before any Scene is loaded? I've seen it in other games (like Clash) - silent SignIn is called while company logo is showing, before any scene.

    That way - logically, SilentSignIn will only run once and won't be called every time player gets back to Start scene, if I understand it correctly. The rest of the SignIn flow will be in the first Scene as it now (interactive SignIn, etc).
     
  3. stevenatunity

    stevenatunity

    Joined:
    Apr 17, 2015
    Posts:
    106
    Hi,

    Ultimate Mobile 2020.2
    Unity 2019.3.1f1
    Samsung Galaxy Tab S2 7.0
    Google Play Games 2020.01.15709

    I am testing the login for Google Play Games using the demo scene.

    The non-silent login signs in but when it should return control to the game it crashes the app. When I reopen and login the silent login works fine.

    Could you please check this for me?

    I've also sent an email to support but posting here in case others have this issue.

    Thanks, Steven
     
  4. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Sorry for the late reply guys, I was a bit unavailable during the trip.

    You need to always run silent sing in. Here is how you should build the logic:

    1. When the app is launched or restored from then background -> Always run SilentSignIn - if it's succeeded, awesome you do have signed user now!
    2. When a user wants to sing in explicitly run the SilentSignIn as well.

    Now if SilentSignIn failed:
    • Was the sing in initialized explicitly by the user? Let's say a button press. If so, proceed with the normal Sing In
    • Was it an application launch and you still feel "fine" about showing sing in a popup and blocking user screen? If so, proceed with the normal Sing In
    • For all the other cases just update your UI to inform the user that hi is not currently signed
     
  5. stevenatunity

    stevenatunity

    Joined:
    Apr 17, 2015
    Posts:
    106
    @lacost have you had a chance to look at my issue posted above?

    Interactive login works but crashes the game when login is complete. Restart the game and silent login works perfectly.
     
  6. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Hey @stevenatunity I am sorry for the delay with the response, can you please send me your device log? Please PM me on the forum or use my personal contract from the asset store publisher page. Thank you!
     
  7. okamoto_tomoyuki

    okamoto_tomoyuki

    Joined:
    Jan 20, 2015
    Posts:
    22
    I am using 2020.6.
    The response in the Date Picker Dialog will be all 0 regardless of the date selected.
    Help.
     
    Last edited: Jun 16, 2020
  8. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Hello, I will take a look today and will let you know what the issue is.
     
  9. okamoto_tomoyuki

    okamoto_tomoyuki

    Joined:
    Jan 20, 2015
    Posts:
    22
    Have you found the cause and solution?
     
  10. okamoto_tomoyuki

    okamoto_tomoyuki

    Joined:
    Jan 20, 2015
    Posts:
    22
    Additional questions. I used AN_MediaPlayer.ShowRemoteVideo to display the video.
    But the video player doesn't show up; the Android log looks like this

    06-18 18:03:17.320: E/Unity(19654): http://192.168.10.102:8000/storage/f93vgienkt4fC9Wza3rZLoPdpjwrnWtPIb0cZCt8.mp4
    06-18 18:03:17.320: E/Unity(19654): (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    06-18 18:03:17.321: D/AndroidNative(19654): Unity: Sent to Java -> AN_MediaPlayer.ShowRemoteVideo :: http://192.168.10.102:8000/storage/f93vgienkt4fC9Wza3rZLoPdpjwrnWtPIb0cZCt8.mp4
    06-18 18:03:17.324: E/MediaPlayer-JNI(19654): QCMediaPlayer mediaplayer NOT present
    06-18 18:03:17.327: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:17.330: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:17.334: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:18.355: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:18.942: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:18.942: E/NuCachedSource2(300): source returned error -1008, 10 retries left
    06-18 18:03:20.527: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:21.942: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:21.948: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:21.958: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:22.539: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:22.540: E/NuCachedSource2(300): source returned error -1008, 9 retries left
    06-18 18:03:24.087: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:24.567: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:25.540: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:25.545: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:26.134: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:26.134: E/NuCachedSource2(300): source returned error -1008, 8 retries left
    06-18 18:03:27.837: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:28.151: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:29.135: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:29.140: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:29.694: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:29.694: E/NuCachedSource2(300): source returned error -1008, 7 retries left
    06-18 18:03:31.297: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:31.836: E/NetlinkEvent(294): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
    06-18 18:03:32.703: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:32.708: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:33.279: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:33.280: E/NuCachedSource2(300): source returned error -1008, 6 retries left
    06-18 18:03:35.664: I/ActivityManager(807): Start proc com.google.android.talk for service com.google.android.talk/com.google.android.apps.hangouts.concurrent.impl.GcmTriggeredNotifier: pid=21214 uid=10115 gids={50115, 9997, 3003, 1028, 1015, 3002} abi=armeabi-v7a
    06-18 18:03:35.739: W/ResourcesManager(21214): Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.
    06-18 18:03:36.282: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:36.282: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:36.609: I/Babel_SMS(21214): MmsConfig: mnc/mcc: 0/0
    06-18 18:03:36.609: I/Babel_SMS(21214): MmsConfig.loadMmsSettings
    06-18 18:03:36.611: I/Babel_SMS(21214): MmsConfig.loadDeviceMmsSettings from API: userAgent=Android-Mms/2.0, uaProfUrl=http://www.google.com/oha/rdf/ua-profile-kila.xml
    06-18 18:03:36.611: I/Babel_SMS(21214): MmsConfig.loadFromDatabase
    06-18 18:03:36.628: E/Babel_SMS(21214): canonicalizeMccMnc: invalid mccmnc
    06-18 18:03:36.628: I/Babel_SMS(21214): MmsConfig.loadFromResources
    06-18 18:03:36.630: E/Babel_SMS(21214): canonicalizeMccMnc: invalid mccmnc nullnull
    06-18 18:03:36.633: I/Babel_SMS(21214): MmsConfig.loadMmsSettings: userAgent=Android-Mms/2.0, uaProfUrl=http://www.google.com/oha/rdf/ua-profile-kila.xml
    06-18 18:03:36.640: I/Babel_App(21214): Startup - clean
    06-18 18:03:36.667: D/Babel_SmsDep(21214): disabled
    06-18 18:03:36.674: D/Babel_SmsDepStand(21214): count:2
    06-18 18:03:36.678: D/Babel_SmsDep(21214): disabled
    06-18 18:03:36.751: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:36.751: E/NuCachedSource2(300): source returned error -1008, 5 retries left
    06-18 18:03:36.784: I/Babel_ConcService(21214): Binding ConcurrentService
    06-18 18:03:36.803: W/ResourcesManager(807): Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.
    06-18 18:03:36.890: I/Babel_ConcService(21214): Scheduling delay with GcmNetworkManager of 258420 s for task ggkaccount_reg_renewal_83774_12 and tag network_connectivity_wakeup:persisted
    06-18 18:03:36.902: I/Babel_ConcService(21214): Scheduling delay with GcmNetworkManager of 82742 s for task gjcDB_CLEANUP_92046_12 and tag :persisted
    06-18 18:03:36.904: I/Babel_ConcService(21214): Acquired partial wake lock to keep ConcurrentService alive
    06-18 18:03:36.906: I/Babel_ConcService(21214): Released partial wake lock as ConcurrentService became idle
    06-18 18:03:36.908: I/Babel_ConcService(21214): Acquired partial wake lock to keep ConcurrentService alive
    06-18 18:03:36.909: I/Babel_ConcService(21214): Released partial wake lock as ConcurrentService became idle
    06-18 18:03:36.911: I/Babel_ConcService(21214): Acquired partial wake lock to keep ConcurrentService alive
    06-18 18:03:36.921: D/Babel_SmsDepStand(21214): count:2
    06-18 18:03:36.921: D/Babel_SmsDepNotif(21214): not sms
    06-18 18:03:36.921: D/Babel_SmsDepUtil(21214): imp:-1:3686
    06-18 18:03:36.922: E/NetworkScheduler.ATC(2155): Called cancelTask for already completed task com.google.android.talk/com.google.android.apps.hangouts.concurrent.impl.GcmTriggeredNotifier{u=0 tag=":persisted" trigger=window{start=3599s,end=3600s,earliest=-28s,latest=-27s} requirements=[NET_ANY] attributes=[PERSISTED] scheduled=-3627s last_run=-1s jid=N/A status=ACTIVE retries=0 client_lib=MANCHEGO_GCM-11011000} :0
    06-18 18:03:36.925: I/ActivityManager(807): Killing 19827:com.nttdocomo.android.bugreport/u0a1 (adj 15): empty #25
    06-18 18:03:36.957: W/libprocessgroup(807): failed to open /acct/uid_10001/pid_19827/cgroup.procs: No such file or directory
    06-18 18:03:36.974: D/Babel_AcctMgr(21214): created account MYMAIL@gmail.com => Redacted-19-chars
    06-18 18:03:36.976: D/Babel_AcctMgr(21214): created account MYMAIL@gmail.com => Redacted-29-chars
    06-18 18:03:36.979: D/Babel_SmsDep(21214): disabled
    06-18 18:03:37.021: D/Babel_Notif_Persistent(21214): PersistentMessageNotifier.cancelOngoingNotification
    06-18 18:03:37.042: D/Babel_Notif_SMS(21214): cancelOngoingNotification
    06-18 18:03:37.095: I/ActivityManager(807): Start proc com.google.android.videos for service com.google.android.videos/com.google.android.apps.play.movies.common.service.drm.RefreshLicenseTaskService: pid=21301 uid=10158 gids={50158, 9997, 3003} abi=armeabi-v7a
    06-18 18:03:37.133: I/Babel_ConcService(21214): Released partial wake lock as ConcurrentService became idle
    06-18 18:03:37.136: W/ResourcesManager(21301): Asset path '/system/framework/com.google.widevine.software.drm.jar' does not exist or contains no resources.
    06-18 18:03:37.612: W/FA-SVC(2320): Interrupted in onRunTask while uploading
    06-18 18:03:37.648: E/NetworkScheduler.ATC(2155): Called cancelTask for already completed task com.google.android.gms/.measurement.PackageMeasurementTaskService{u=0 tag="Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG" trigger=window{start=235s,end=472s,earliest=-58s,latest=178s} requirements=[NET_CONNECTED] attributes=[PERSISTED] scheduled=-293s last_run=0s jid=N/A status=ACTIVE retries=0 client_lib=GMS_TASK_SCHEDULER-201817000} :1
    06-18 18:03:37.754: E/SQLiteLog(21301): (283) recovered 19 frames from WAL file /data/data/com.google.android.videos/databases/purchase_store.db-wal
    06-18 18:03:37.959: W/ResourcesManager(807): Asset path '/system/framework/com.google.widevine.software.drm.jar' does not exist or contains no resources.
    06-18 18:03:37.996: I/Finsky(19136): [1374] xic.a(25): Will not allow first-party apps signed by test keys
    06-18 18:03:37.999: I/Finsky(19136): [1374] bmm.a(8): Received content filters request from com.google.android.videos
    06-18 18:03:38.108: E/Vold(262): Failed to find mounted volume for /storage/sdcard1/Android/data/com.google.android.videos/files/Movies/
    06-18 18:03:38.108: W/Vold(262): Returning OperationFailed - no handler for errno 0
    06-18 18:03:38.110: W/ContextImpl(21301): Failed to ensure directory: /storage/sdcard1/Android/data/com.google.android.videos/files/Movies
    06-18 18:03:38.117: W/PlayMovies(21301): UnpinContentCleanerImpl.cleanUp:13 Start clean up task with reason 1
    06-18 18:03:38.129: E/Vold(262): Failed to find mounted volume for /storage/sdcard1/Android/data/com.google.android.videos/files/Movies/
    06-18 18:03:38.129: W/Vold(262): Returning OperationFailed - no handler for errno 0
    06-18 18:03:38.130: W/ContextImpl(21301): Failed to ensure directory: /storage/sdcard1/Android/data/com.google.android.videos/files/Movies
    06-18 18:03:38.146: I/ActivityManager(807): Killing 19863:com.google.android.partnersetup/u0a25 (adj 15): empty #25
    06-18 18:03:38.171: W/VideoCapabilities(21301): Unrecognized profile 2130706433 for video/avc
    06-18 18:03:38.189: W/VideoCapabilities(21301): Unsupported mime video/mp4v-esdp
    06-18 18:03:38.198: W/libprocessgroup(807): failed to open /acct/uid_10025/pid_19863/cgroup.procs: No such file or directory
    06-18 18:03:38.216: I/VideoCapabilities(21301): Unsupported profile 4 for video/mp4v-es
    06-18 18:03:38.221: W/VideoCapabilities(21301): Unsupported mime video/x-ms-wmv
    06-18 18:03:38.225: W/AudioCapabilities(21301): Unsupported mime audio/x-ms-wma
    06-18 18:03:38.226: W/AudioCapabilities(21301): Unsupported mime audio/x-ms-wma-lossless
    06-18 18:03:38.227: W/AudioCapabilities(21301): Unsupported mime audio/x-ms-wma-pro
    06-18 18:03:38.692: I/ActivityManager(807): Start proc com.android.chrome for service com.android.chrome/org.chromium.components.background_task_scheduler.BackgroundTaskGcmTaskService: pid=21375 uid=10080 gids={50080, 9997, 3003, 1028, 1015} abi=armeabi-v7a
    06-18 18:03:38.713: W/GmscoreIpa(2320): Processed 0 SMS and 0 MMS deletions
    06-18 18:03:39.273: I/ActivityManager(807): Killing 19572:com.nttdocomo.android.screenlockservice/u0a151 (adj 15): empty #25
    06-18 18:03:39.307: W/libprocessgroup(807): failed to open /acct/uid_10151/pid_19572/cgroup.procs: No such file or directory
    06-18 18:03:39.752: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:39.753: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:40.239: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:40.239: E/NuCachedSource2(300): source returned error -1008, 4 retries left
    06-18 18:03:41.104: I/PlayCommon(19136): [1448] aora.c(26): Preparing logs for uploading
    06-18 18:03:41.113: I/PlayCommon(19136): [1448] aora.c(167): Connecting to server for timestamp: https://play.googleapis.com/play/log/timestamp
    06-18 18:03:41.511: W/PlayCommon(19136): [1448] aora.a(1): No account for auth token provided
    06-18 18:03:41.512: I/PlayCommon(19136): [1448] aora.c(201): Connecting to server: https://play.googleapis.com/play/log?format=raw&proto_v2=true
    06-18 18:03:41.679: I/PlayCommon(19136): [1448] aora.c(232): Successfully uploaded logs.
    06-18 18:03:43.239: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:43.245: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:43.763: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:43.763: E/NuCachedSource2(300): source returned error -1008, 3 retries left
    06-18 18:03:46.771: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:46.775: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:47.230: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:47.230: E/NuCachedSource2(300): source returned error -1008, 2 retries left
    06-18 18:03:50.231: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:50.235: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:50.712: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:50.712: E/NuCachedSource2(300): source returned error -1008, 1 retries left
    06-18 18:03:51.645: D/Babel_SmsDep(21214): disabled
    06-18 18:03:51.668: W/ResourcesManager(807): Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.
    06-18 18:03:51.725: I/Babel_ConcService(21214): Scheduling delay with GcmNetworkManager of 3599 s for task gjcDB_CLEANUP_3764393_3 and tag :persisted
    06-18 18:03:51.733: I/Babel_ConcService(21214): Acquired partial wake lock to keep ConcurrentService alive
    06-18 18:03:51.736: I/Babel_ConcService(21214): Released partial wake lock as ConcurrentService became idle
    06-18 18:03:53.713: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:53.718: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:54.155: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:54.155: E/NuCachedSource2(300): source returned error -1008, 0 retries left
    06-18 18:03:54.168: E/MediaPlayer(19654): Should have subtitle controller already set
    06-18 18:03:54.188: E/Unity(19654): http://192.168.10.102:8000/api/info/count
    06-18 18:03:54.188: E/Unity(19654): (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    06-18 18:03:54.188: E/Unity(19654): user_id=1
    06-18 18:03:54.188: E/Unity(19654): (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    06-18 18:03:54.230: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:54.234: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:54.259: E/MediaPlayer(19654): Should have subtitle controller already set
    06-18 18:03:54.685: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:54.685: E/NuCachedSource2(300): source returned error -1008, 9 retries left
    06-18 18:03:55.660: E/Unity(19654): {"count":0}
    06-18 18:03:55.660: E/Unity(19654): (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    06-18 18:03:57.685: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:03:57.687: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:03:58.157: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:03:58.157: E/NuCachedSource2(300): source returned error -1008, 8 retries left
    06-18 18:04:00.858: W/ProcessCpuTracker(807): Skipping unknown process pid 21471
    06-18 18:04:00.859: W/ProcessCpuTracker(807): Skipping unknown process pid 21472
    06-18 18:04:00.859: W/ProcessCpuTracker(807): Skipping unknown process pid 21475
    06-18 18:04:01.158: D/MediaHTTPConnection(19654): filterOutInternalHeaders: key=User-Agent, val= stagefright/1.2 (Linux;Android 5.0.2)
    06-18 18:04:01.159: D/MediaHTTPConnection(19654): proxy null port 0
    06-18 18:04:01.636: E/IMediaHTTPConnection(300): requested 65536, got 4294967295
    06-18 18:04:01.636: E/NuCachedSource2(300): source returned error -1008, 7 retries left


    I would like to know if there are any ways to deal with this.
     
    Last edited: Jun 18, 2020
  11. okamoto_tomoyuki

    okamoto_tomoyuki

    Joined:
    Jan 20, 2015
    Posts:
    22
    Run a sample of AN_MediaPlayer.ShowRemoteVideo and see what happens.
    Sound was played, but the video player was not displayed, and the Unity screen was still visible.
    The above log retries did not occur.
     
  12. okamoto_tomoyuki

    okamoto_tomoyuki

    Joined:
    Jan 20, 2015
    Posts:
    22
    Using UnityEngine.Handheld.PlayFullScreenMovie But the above video could not be played.
    It seems that Android Native Pro is not the cause. Sorry.
     
  13. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Thx for the info!
     
  14. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    2020.8
    • fix: Setting recreation bug fixed with Android bootstrapper.
    • fix: Android image/camera picker error messages updated when the user canceled an action.
    • feat: Wheel picker default value.
    • feat: Android Games Settings Intent API added.
    • chore: Logger log info log improved.
     
    okamoto_tomoyuki likes this.
  15. greay

    greay

    Joined:
    Mar 23, 2011
    Posts:
    81
    Is there a changelog or upgrade guide anywhere? I'm running into several issues with changed or removed API, and while some of it I can sortof guess at, not all of the changes are immediately obvious.

    ....... I see that the billing API drastically changed. The new documentation is sorely lacking and/or nonexistent, and none of the links here to Google's documentation work: https://unionassets.com/android-native-pro/connecting-to-the-service-674
     
    Last edited: Aug 8, 2020
  16. CeleDko

    CeleDko

    Joined:
    Jan 15, 2017
    Posts:
    17
    Hi - Getting these below errors in the new update:

    Assets\Plugins\StansAssets\NativePlugins\AndroidNativePro\Runtime\API\Firebase\Analytics\AN_FirebaseAnalytics.cs(99,13): error CS0103: The name 'Fire' does not exist in the current context
    Assets\Plugins\StansAssets\NativePlugins\AndroidNativePro\Runtime\API\Firebase\Analytics\AN_FirebaseAnalytics.cs(122,13): error CS0103: The name 'Fire' does not exist in the current context

    I am using version Unity 2019.4.13f1
     
    Last edited: Nov 4, 2020
  17. CeleDko

    CeleDko

    Joined:
    Jan 15, 2017
    Posts:
    17
  18. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Yea, that's because we using another API natively now. New documentation is here:
    https://github.com/StansAssets/com.stansassets.android-native/wiki
    Check out the Vending related articles.

    Few more notes:
    I hope this chapter will shade some light of why we have this exact approach to the API:
    https://github.com/StansAssets/com.stansassets.android-native/wiki#api-convention

    Another thing that might be helpful is my humble attempt to explain it in a video:
     
  19. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Hey, the problem is we still in *.unitypackage world. So when I remove something from the plugin and you update to the new version, those old files that were removed in the plugin will still remain in your project and may cause some issues,.
    This why it's recommended to remove the old plugin before updating it to the new one. If this is an absolutely necessary action I am always trying to warn in the version notes.
     
  20. cyliax

    cyliax

    Joined:
    Feb 25, 2014
    Posts:
    15
    Update:
    The issue occurs when using API levels > 28 with Android 11 mobile devices. It doesn't matter which minor Unity 2019 LTS version we use. When we use a higher API level like 29 and install the APK on an Android 10 device it works. But we can not upload Apps lower than API level 29 to the PlayStore, so this issue is critical for Android 11 users.

    --- former request following, just fyi ---

    Hi, first: thank your for your great work on both native plugins (iOS, Android). I updated to the current versions (2020.9) and I'm using the latest Unity 2019 LTS Version 2019.4.13f1. We used your Android Plugin to capture and select images and videos in our app.

    Now I updated my Google Pixel 3a to Android 11 (API 30) and it's not possible to take or select images or videos anymore. I get the following errors:

    Capture video:
    Error: Media picker failed with error: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat, int, java.io.inputStream)' on a null object reference

    Select video:
    Using lower FS for /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20201107-WA0007.mp4
    11-11 11:21:46.051 3439 32370 W MediaProvider: Forgot to handle a top level directory in getContentUriForFile?
    11-11 11:21:46.054 3439 32370 E MediaProvider: insertFileIfNecessary failed
    11-11 11:21:46.054 3439 32370 E MediaProvider: java.lang.IllegalArgumentException: Primary directory bichooser not allowed for content://media/external_primary/file; allowed directories are [Download, Documents]

    Capture image:
    11-11 11:24:22.490 3439 32402 E MediaProvider: java.lang.IllegalArgumentException: Primary directory bichooser not allowed for content://media/external_primary/file; allowed directories are [Download, Documents]
    11-11 11:24:22.490 3439 32402 E MediaProvider: at com.android.providers.media.MediaProvider.ensureFileColumns(MediaProvider.java:2682)
    ...
    11-11 11:24:22.491 1475 3427 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
    11-11 11:24:22.491 17081 17081 E Intent : Ignoring failure to create file /storage/emulated/0/bichooser/1605090262475.jpg
    11-11 11:24:22.491 17081 17081 E Intent : java.io.IOException: Operation not permitted

    Select image:
    11-11 11:28:40.093 3439 32411 W MediaProvider: Forgot to handle a top level directory in getContentUriForFile?
    11-11 11:28:40.096 3439 32411 E MediaProvider: insertFileIfNecessary failed
    11-11 11:28:40.096 3439 32411 E MediaProvider: java.lang.IllegalArgumentException: Primary directory bichooser not allowed for content://media/external_primary/file; allowed directories are [Download, Documents]
    11-11 11:28:40.096 3439 32411 E MediaProvider: at com.android.providers.media.MediaProvider.ensureFileColumns(MediaProvider.java:2682)

    Error passed to Unity:
    "Media picker failed with error: onActivityResult requestCode is different from the type the chooser was initialized with"

    So unfortunately none of these native methods are working anymore. The only thing that works is opening up the native screens for image and video selection.

    Is there something I miss, a new requirement, permission or something else.

    I appreciate any help. Thanks guys.

    Carsten

    PS: It is still working on Android < 10 devices.
     
    Last edited: Nov 12, 2020
    robb1984 likes this.
  21. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Thx a lot for the head up. I need to grab an Android 11 device so I can test it. I probably will do that next week.
    But the next update probably will still have this issue. Will try to make a patch ASAP tho.

    Thx again @cyliax for all the provided info. I will also appreciate if you can report it here. a lot easier to keep track:
    https://github.com/StansAssets/com.stansassets.android-native/issues

    Cheers!
     
  22. RichO4D

    RichO4D

    Joined:
    Mar 21, 2020
    Posts:
    4
    We've been slowly upgrading from the previous Android Native plugin to the Android Native Pro plugin in our project. We've got to the stage of testing the Google Play login API. However even in a blank new project (Unity 2020.15.1f) we get this error further below in the AN_GMS_Auth Example scene and in our project.

    We are using IL2CPP, .NET 4.x, targetting API Level 21 and building for ARM64. Android Native has APP, Google Play and Local Notifications enabled. We also have run the External Dependency Manager > Android Resolver.The manifest which comes with the plugin looks like it's declared the ProxyActivity as well.

    No rush for a reply to this. We wondered if there was anything obvious we may have missed?

     
  23. cyliax

    cyliax

    Joined:
    Feb 25, 2014
    Posts:
    15
    I found the reason and a workaround for the issue for now:
    Google started to use scoped storage from Android 10:

    https://developer.android.com/training/data-storage/use-cases

    You can opt out this feature with adding:

    requestLegacyExternalStorage="true"


    to your AndroidMainfest.xml application section.

    After that it is possibile to use your plugin and set API level to 29 (necessary from store uploads).Then it works on an Android 11 device like Google Pixel 3a as well. The question is, what happens if you can't opt out that anymore with API level 30.
     
  24. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Hm.. I thought this has something to do with this settings being disabled:
    https://github.com/StansAssets/com.stansassets.android-native/wiki/Settings#environment-management
    But since you not the only one who is talking about this problem soming on my side I need to look at. Will keep you updated on this.
     
    Z3R0Skull and RichO4D like this.
  25. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    I will definitely have a closer look in this issue, but the plugin does have these settings for a quick a while already that will give you the ability to force internal storage usage. Check this article please:
    https://github.com/StansAssets/com.stansassets.android-native/wiki/Preferred-Images-Storage

    Thx.
     
  26. RichO4D

    RichO4D

    Joined:
    Mar 21, 2020
    Posts:
    4
    Thanks for replying, really appreciate it :) I've sent on your support contact page, a Dropbox link to our test Unity package. AFAIK, the Auto Manifest Managememnt and Jar resolver are enabled. Hopefully the unity package may reveal if we have done something incorrect or some other reason.
     
    ShockFactor likes this.
  27. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Hey @RichO4D can you PM me your e-mail, I won't make sure we haven't missed it.
     
  28. Z3R0Skull

    Z3R0Skull

    Joined:
    May 15, 2013
    Posts:
    5
    Any news on how we can fix this?
     
  29. Z3R0Skull

    Z3R0Skull

    Joined:
    May 15, 2013
    Posts:
    5
    @lacost It seems that the manifest merging is not picking up the generated plugin manifest file on build. The activity definitions are inside the plugin manifest but are not present in the final generated manifest (checked /Temp/StagingArea/ manifest files after build). Any idea how to fix this?

    Thank you and a happy new year everyone!

    Edit: The only activity related to com.stansassets present in the manifest is this one: `com.stansassets.core.features.video.VPFullscreenActivity`.
     
    ShockFactor likes this.
  30. erre-rox

    erre-rox

    Joined:
    Dec 3, 2012
    Posts:
    23
    Hi,
    I have updated Stan's Assets Android Native to the latest version.
    Testing our app we had encountered this strange crash report:

    fb-crash.PNG

    didn't find class "com.androidnative.features.notifications.localnotificationreceiver"

    I can't found com.androidnative namespace nowhere. Where is it supposed to be added?

    Thank you for support.

    Best regards,
    Andrea
     
  31. skullthug

    skullthug

    Joined:
    Oct 16, 2011
    Posts:
    174
    We also recently upgraded our project to latest Android Native and am running into a very similar permission not being set issue. I've verified that the auto manage the manifest is enabled, and even tried manually adding the permissions myself after it initially failed to no avail.

     
    Z3R0Skull likes this.
  32. skullthug

    skullthug

    Joined:
    Oct 16, 2011
    Posts:
    174
    RichO4D likes this.
  33. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Hey folks, sorry for being slow on that issue. Yep like @skullthug mentioned it was due to a meta file issue. The new plugin version will update the meta-file setting during the build now to make sure this problem will never come back.
    In the meantime, you can just enable the Android platform toggle for the plugin library as shown in the screenshot in the link posted above.

    Thanks!
     
  34. RichO4D

    RichO4D

    Joined:
    Mar 21, 2020
    Posts:
    4
  35. robb1984

    robb1984

    Joined:
    Aug 14, 2013
    Posts:
    2
    The whole Picture Logic is not working with Android 10

    Saw the entry a few lines above.
    Sadly the requestLegacyExternalStorage="true" solution is not working for me.
    On trying to select a picture it throws:
    "open failed EPERM (Operation not permitted)"

    On trying to take a picture:
    "OnActivityResult requestcode is different from type the chooser was initialized with"

    also:

    Code (CSharp):
    1.     public static void CaptureImage(int maxSize, Action<AN_CameraCaptureResult> callback)
    2.         {
    3.             AN_PermissionsUtility.TryToResolvePermission(
    4.                 CameraApiCameraApiRequiredPermissions,
    5.                 granted =>
    6.                 {
    7.                
    8.                     if (granted)
    9.                     {
    10.                         var result = new AN_CameraCaptureResult(new SA_Error(9, "User denied permission."));
    11.                         callback.Invoke(result);
    12.                         return;
    13.                     }
    14.                
    15.                     AN_GalleryInternal.PickImageFromGallery(maxSize, AN_GalleryChooseType.CAPTURE_PICTURE, false, result =>
    16.                     {
    17.                         var captureResult = result.IsFailed
    18.                             ? new AN_CameraCaptureResult(result.Error)
    19.                             : new AN_CameraCaptureResult(result.Media[0]);
    20.  
    21.                         callback.Invoke(captureResult);
    22.                     });
    23.                 });
    24.         }
    missing "!" before granted

    With that workaround i now have the following errors:
    (Only on Android 10, Package name removed)
    01-30 16:37:30.708: E/DollieAdapterService(2159): notifyActivityState pkg:/com.stansassets.core.utility.AN_ProxyActivity state:2 fg:true mUid:10255
    01-30 16:37:30.808: E/BufferQueueProducer(656): [/com.stansassets.core.utility.AN_ProxyActivity#0]:1338: disconnect: not connected (req=1)
    01-30 16:38:30.634: E/DollieAdapterService(2159): notifyActivityState pkg:/com.stansassets.core.utility.AN_ProxyActivity state:13 fg:false mUid:10255
    01-30 16:38:31.013: E/BufferQueueProducer(656): [/com.stansassets.core.utility.AN_ProxyActivity#0]:1338: disconnect: not connected (req=1)
    01-30 16:38:31.031: E/WindowManager(1305): win=Window{5ecad21 u0 /com.stansassets.core.utility.AN_ProxyActivity} destroySurfaces: appStopped=true win.mWindowRemovalAllowed=false win.mRemoveOnExit=false
    01-30 16:38:31.132: E/WindowManager(1305): win=Window{cc862bb u0 /com.unity3d.player.UnityPlayerActivity} destroySurfaces: appStopped=true win.mWindowRemovalAllowed=false win.mRemoveOnExit=false
     
    Last edited: Jan 30, 2021
  36. skullthug

    skullthug

    Joined:
    Oct 16, 2011
    Posts:
    174

    Are you targeting SDK 30? requestLegacyExternalStorage is ignored in SDK 30 as its now completely deprecated. If you can target SDK 29, try that and see if it works.
    Unfortunately it looks like Android Native is still using the method that is slated to be no longer supported, b/c I ran into this same exact issue.
     
  37. robb1984

    robb1984

    Joined:
    Aug 14, 2013
    Posts:
    2
    Don't have SDK 30 installed and target 29.
     
  38. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    The Android 10 pictures issue is a known one, and a beta version will be available next week so I am open to sending it to everyone interested.

    But I will release plugin updates today because they're a lot's of important fixes including the `missing "!"`
     
  39. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    2021.1
    • fix: capture image permissions.
    • fix: android resolver installation.
    • fix: ios music player items select delegate.
    • fix: android contracts async retrieval fixed.
    • chore: packages installation reworked & facebook package version updated.
    • chore: force enabled an_library.bundle Android platform compatibility.
     
  40. erre-rox

    erre-rox

    Joined:
    Dec 3, 2012
    Posts:
    23
    @lacost can you help us with this? I wasn't able to find nothing about this.
     
  41. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
  42. CeleDko

    CeleDko

    Joined:
    Jan 15, 2017
    Posts:
    17
    Hello, @lacost . Why am I getting these errors after updating? upload_2021-2-23_18-59-22.png
    And how can this be fixed? Because of them, I cannot continue working on my project.
     
  43. erre-rox

    erre-rox

    Joined:
    Dec 3, 2012
    Posts:
    23
  44. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    The problem might be with the way how *unitypackage update works. I would suggest that you remove the whole plugin and then install it from scratch.
    Looks like some scripts were overridden in the wrong way, or weren't removed when it should. Also feel free to PM me if this approach won't help.
     
  45. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
    Yup, I saw your PM, do not have any good guesses at the moment, but I think we can have a call and brainstorm a little bit.
     
  46. Z3R0Skull

    Z3R0Skull

    Joined:
    May 15, 2013
    Posts:
    5
    Last edited: Mar 20, 2021
  47. stanislav-osipov

    stanislav-osipov

    Joined:
    May 30, 2012
    Posts:
    1,782
unityunity