google-play-services

Honouring in-app purchases offline + removing cancelled purchases

一个人想着一个人 提交于 2020-06-07 06:07:03
问题 The approach involved with the two items in the title of this post appear to conflict with one another and are very hard to test, and it's these edge cases that result in unhappy customers when their purchased product stops working. A lot of the discussions on Stack Overflow are 2+ years old, inconclusive and reference the deprecated AIDL library rather than Google Play Billing Service. I want to make sure a user has offline access to a premium version of my Android App which is purchased via

How do you find your Google Cast App ID (app_id) in the 2017 Google Play Developer Console?

我的未来我决定 提交于 2020-05-29 07:50:06
问题 I can no longer find the app_id that is required for the implementation of Google Play Services including Google Cast, In-app Billing, etc. Example: CastOptions castOptions = new CastOptions.Builder() .setReceiverApplicationId(context.getString(R.string.app_id)) .build(); It used to be obtained via the Google Play Developer Console here: Google Play Developer Console 2014 However Google recently released their new Play Console and things have been completely restructured: Google Play

Error:Execution failed for task ':app:packageDebug'. > !zip.isFile()

蹲街弑〆低调 提交于 2020-05-24 21:10:10
问题 @UPDATE Thank you very much. Now at least there are no errors. But it's still a far cry from how it worked before - how it should work. Now, the database looks ... strange. I think that something is still wrong with this gradle. It should not look like. According to the java code in the database will be user and its data (name, email, date of account creation, id avatar) In the application at the site next to the avatar you should display the name. Unfortunately, as you can see nothing

Change Privacy Policy URL in play.google.com/apps/publish/

橙三吉。 提交于 2020-05-16 05:11:20
问题 I entered the wrong URL in Privacy Policy URL box and published the app in alpha release. App is now Pending publication status. There is no option to change Privacy Policy URL now. 回答1: You change Privacy Policy URL from Store Presence>Store Listing Goto bottom of the page and change the URL Update 2020 Privacy Policy is moved to Store presence > App Content See here 来源: https://stackoverflow.com/questions/45649098/change-privacy-policy-url-in-play-google-com-apps-publish

FusedLocationProviderClient getLastLocation elapsedRealtimeNanos mostly current system time

ε祈祈猫儿з 提交于 2020-05-14 19:50:14
问题 Update 2 I had a talk with a google engineer on Google I/O '18. He told me that I can trust the fusedLocationProvider. If he marks the last known location with a new timestamp the user is probably still at the same location. I'd like to do a few tests with a "moving" device in the future to prove this statement. Original Question I'm requesting the last known location from the FusedLocationProviderClient with getLastLocation() and want to check if the last known location is older than 5

How to test install referrer with Google's installreferrer library?

♀尐吖头ヾ 提交于 2020-05-13 00:54:52
问题 There are lots of examples how to test "default" way of detecting install referrer, but there is not example how to test com.android.installreferrer:installreferrer library. Examples like adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n your.package.name/path.to.receiver --es referrer --es referrer "EXTRA_STRING_VALUE" do not work because we don't know receiver path. So how to test it? 回答1: With the InstallReferrerClient, there doesn't seem to be any BroadcastReceiver

Have both GMS and HMS in the project

对着背影说爱祢 提交于 2020-05-08 04:11:10
问题 How does one go about having both Google Mobile Services and Huawei Mobile Services in the app? Being that Huawei have lost the license over GMS, it seems we need to replace all the GMS services used in the apps with Huawei provided ones. What would a "best practice" be for this? Use flavours and somehow handle each class individually, or copy paste the project and start replacing? Or ... better yet, is there a way to perhaps have both and ... somehow let the app decide which service to use

Android Studio ML kit cannot load OCR module

北城以北 提交于 2020-04-11 07:48:08
问题 I am working on an android app that involves ML kit. I went through the tutorial on how to set up Android Studio to work with Firebase. Then I headed to use the text recognition API. Here is the code that I am having in some button click listener: FirebaseVisionTextRecognizer detector = FirebaseVision.getInstance() .getOnDeviceTextRecognizer(); Task<FirebaseVisionText> result = detector.processImage( FirebaseVisionImage.fromBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.test))

Large number of RemoteServiceExceptions in Google's cast MediaNotificationService

徘徊边缘 提交于 2020-02-26 09:51:30
问题 In the last ~24 hours, we've seen a few thousand crashes within Google's MediaNotificationService : Fatal Exception: android.app.RemoteServiceException Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{f9a4deb u0 <our package name>/com.google.android.gms.cast.framework.media.MediaNotificationService} android.app.ActivityThread$H.handleMessage (ActivityThread.java:1855) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop

Get User ID From Google Play Games API?

≯℡__Kan透↙ 提交于 2020-02-25 06:56:06
问题 I'd like to be able to link users in one game to users in another game such that users that unlock certain achievements in game 1 are able to receive special items in game 2. This is very similar to how Blizzard does it where buying like X in Hearthstone gives you a special mount in WoW. I know we could manage our own account system but we're hoping there's an easy way around that. I've been researching Google Play Games and it seems like that could be the ticket but I can't seem to figure