In-app purchases (IAP) in android with BOTH Google and Facebook authentication?

Ivan Peshev

In my android application I want to let users to authenticate with google or facebook account.

I've implemented sign-in with google already. I'll try to implement sign-in with facebook soon.

I've read about IAP in android:

https://developer.android.com/google/play/billing/billing_overview

https://droidmentor.com/inapppurchase-subscription/

at least what I understand it is about google account authentication.

So I wonder is it possible to make IAP in android application if the user is authenticated with facebook account ?

I cant find examples or explanations by now. Any good examples/explanations about IAP with google is also very appreciated because I still don't have a clear vision on IAP.

fyi: In my app user will be able to buy "virtual tickets pack" (e.g.: 10, 15, 20 tickets) and to add them to their profile. and later they will "consume" tickets one by one.

Best Regards

Cesar

My understanding is that you already have a user system that you are using to provide a Google login to your customers. When you add Facebook login, you'll probably want to match both Google and Facebook logins with your own custom user ID. It's always a good idea to have a custom ID of your own so that you can map it to different types of logins.

When purchasing through Google Play Billing, the purchase gets associated with the user's phone Google account and you can also provide an optional way of associating a purchase with your own user account system. In order to do that, when building the BillingFlowParams, call setAccountId and pass your account's system custom ID.

To provide the best experience persisting purchases during installs or across devices you should also be saving the purchases on your server's database. In order to do that in a secure manner, you will also have to implement server-side receipt validation. If you want to avoid most of these headaches, I recommend you to use a service like RevenueCat.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Facebook authentication via android app

分類Dev

When can I add In app purchases ? Google Android Play Store

分類Dev

Automatically canceled android in app purchases, reason "other"

分類Dev

Design for Facebook authentication in an iOS app that also accesses a secured web service

分類Dev

android - Firebase Google Authentication user not logging out

分類Dev

Android Firebase Authentication for Google Signin fails

分類Dev

Open Facebook page from Android app?

分類Dev

Error while using facebook app invite for android

分類Dev

Facebook read_mailbox permission in Android App

分類Dev

Restore already bought in-app-purchases on iPhone?

分類Dev

In-App purchases not working in chrome extension

分類Dev

How to implement In-App Purchases Subscription in Flutter?

分類Dev

Should I use in-app purchases in this case?

分類Dev

Android Facebook Deeplink redirecting to Google Play Store

分類Dev

How to handle pending purchases from Google Play

分類Dev

Android app custom web service authentication using HttpPost does not stick

分類Dev

Authentication failed on the server. Google maps api. Android

分類Dev

Why is my app's UI not showing on VS android app emulator (both API level 19 and 23)?

分類Dev

Retrieving the user name and email id from Facebook into my android app

分類Dev

How to create a promotion code for iOS in-app purchases

分類Dev

In app purchases using SwifyStoreKit unable to get info about product

分類Dev

In-App Purchase: "Restore Purchases" button on user-bound purchase

分類Dev

In app purchases using SwifyStoreKit unable to get info about product

分類Dev

(Swift/iOS) Is it possible to get user purchased items from In app purchases?

分類Dev

How to implement a universal login in Android like Facebook and Google

分類Dev

Apps are updating status via facebook android sdk 3.17 but not when using Facebook's official app (#404)

分類Dev

Android Firebase phone authentication INVALID_APP_CREDENTIAL:App validation failed

分類Dev

Convert the android app in Google Play for Samsung Store

分類Dev

Update app (Android) on Google play with new project?

Related 関連記事

  1. 1

    Facebook authentication via android app

  2. 2

    When can I add In app purchases ? Google Android Play Store

  3. 3

    Automatically canceled android in app purchases, reason "other"

  4. 4

    Design for Facebook authentication in an iOS app that also accesses a secured web service

  5. 5

    android - Firebase Google Authentication user not logging out

  6. 6

    Android Firebase Authentication for Google Signin fails

  7. 7

    Open Facebook page from Android app?

  8. 8

    Error while using facebook app invite for android

  9. 9

    Facebook read_mailbox permission in Android App

  10. 10

    Restore already bought in-app-purchases on iPhone?

  11. 11

    In-App purchases not working in chrome extension

  12. 12

    How to implement In-App Purchases Subscription in Flutter?

  13. 13

    Should I use in-app purchases in this case?

  14. 14

    Android Facebook Deeplink redirecting to Google Play Store

  15. 15

    How to handle pending purchases from Google Play

  16. 16

    Android app custom web service authentication using HttpPost does not stick

  17. 17

    Authentication failed on the server. Google maps api. Android

  18. 18

    Why is my app's UI not showing on VS android app emulator (both API level 19 and 23)?

  19. 19

    Retrieving the user name and email id from Facebook into my android app

  20. 20

    How to create a promotion code for iOS in-app purchases

  21. 21

    In app purchases using SwifyStoreKit unable to get info about product

  22. 22

    In-App Purchase: "Restore Purchases" button on user-bound purchase

  23. 23

    In app purchases using SwifyStoreKit unable to get info about product

  24. 24

    (Swift/iOS) Is it possible to get user purchased items from In app purchases?

  25. 25

    How to implement a universal login in Android like Facebook and Google

  26. 26

    Apps are updating status via facebook android sdk 3.17 but not when using Facebook's official app (#404)

  27. 27

    Android Firebase phone authentication INVALID_APP_CREDENTIAL:App validation failed

  28. 28

    Convert the android app in Google Play for Samsung Store

  29. 29

    Update app (Android) on Google play with new project?

ホットタグ

アーカイブ