[Hive][v0.1.46]The app crashes when trying to sign in with old accounts.
utopian-io·@masudrana·
0.000 HBD[Hive][v0.1.46]The app crashes when trying to sign in with old accounts.
<h4>Related Information</h4> * Project repository:https://github.com/gpetuhov/Hive * Project Name:Hive * The submitted issue is <a href="https://github.com/gpetuhov/Hive/issues/5">Here</a> <h4>Actual behavior</h4> I can not sign in with my old account which was created past. <h4>Expected behavior</h4> Expected that i can sign in and use app without crash. <h4>How to reproduce</h4> <ol> <li>Install the apps and open the app</li> <li>click GRANT PERMISSION</li> <li>click sign in with email</li> <li> give mail and password </li> <li>Click sign</li> <li>See error</li> </ol> <h4>Information</h4> <ul> <li>App version:V0.1.46</li> <li>OS:Android 9.0</li> <li>Device:Samsung A10</li> </ul> <h4>Recording Of The Bug</h4> https://youtu.be/sw_bLZ2IBxU <h4>Logcat</h4> <pre> <code> 05-15 09:09:30.723 7578 7578 E AndroidRuntime: FATAL EXCEPTION: main 05-15 09:09:30.723 7578 7578 E AndroidRuntime: Process: com.gpetuhov.android.hive, PID: 7578 05-15 09:09:30.723 7578 7578 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.gpetuhov.android.hive.service.LocationService: java.lang.SecurityException: Permission Denial: startForeground from pid=7578, uid=10239 requires android.permission.FOREGROUND_SERVICE 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:3769) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.app.ActivityThread.access$1400(ActivityThread.java:237) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7073) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: Caused by: java.lang.SecurityException: Permission Denial: startForeground from pid=7578, uid=10239 requires android.permission.FOREGROUND_SERVICE 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:1966) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1934) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1884) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:5043) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.app.Service.startForeground(Service.java:695) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at com.gpetuhov.android.hive.service.LocationService.startForegroundService(LocationService.kt:55) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at com.gpetuhov.android.hive.service.LocationService.onCreate(LocationService.kt:34) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:3757) 05-15 09:09:30.723 7578 7578 E AndroidRuntime: ... 8 more </code> </pre> <hr> My github account:https://github.com/maaudrana
👍 cheneats, yougotresteemed, musiclove, primeradue, imisstheoldkanye, team-suntiger, bogdasha, sudefteri, akifane, neokuduk, literaturk, ayisigi, baycan, rasit, maveraunnehr, meowcliver, leir, phage93, steemjeet, eforucom, supu, xyzashu, mehta, minminlou, steamrebelvapors, kgdruglords, jisanmehedi, misuk, rjtazul, amosbastian, rufans, helo, jaff8, asaj, buckydurddle, mirkosche, jinger, mcfarhat, utopian-io, tombstone, jga, sargoon, cyprianj, cryptouno, dicetime, ascorphat, utopian.trail, daan, silviu93, elear, mcyusuf, aussieninja, bflanagin, dssdsds, jayplayco, stem-espanol, jk6276.mons, tykee, dakeshi, carloserp-2000, darewealth, dongentle2, emiliomoron, tomastonyperez, jubreal, josedelacruz, viannis, rollthedice, erickyoussif, techcoderx, jk6276, fran.frey, mrsbozz, jaxson2011, lorenzor, suesa, tsoldovieri, iamphysical, felixrodriguez, azulear, ivymalifred, elvigia, luiscd8a, joseangelvs, yusvelasquez, giulyfarci52, wilmer14molina, techslut, minersean, erikaflynn, che-shyr, jakipatryk, didic, suesa-random, rewarding, eastmael, eliaschess333, amestyj, eniolw, scienceangel, alex-hm, yu-stem, alexs1320, cpufronz, carlos84, anaestrada12, kaczynski, carsonroscoe, steem-ua, masudrana,