DroidKaigi 2023 - [JA] How to implement In-app billing on Flutter – the road to unify Andr… | nacatl

Опубликовано: 30 Октябрь 2024
на канале: DroidKaigi
309
9

List of sessions -    / droidkaigi  

How to implement In-app billing on Flutter – the road to unify Android/iOS logics (nacatl)

In this presentation, I will introduce the points I struggled with, kept in mind or learned while porting from Android to Flutter the existing in-app billing functionality of an app available on the market.


Since its launch in 2018, Flutter has established itself as a cross-platform framework.
The product I was involved in also realized the transition from the dual Android/iOS native app development system to a cross-platform development system using Flutter.
The unification of various functions and UI was realized thanks to Flutter.


However, an annoying part about cross-platform development is when sometimes branching Android/iOS (I'd like to include Web as well) is inevitable due to circumstances of either side.
For some UIs, it will be necessary to consider the impact on users of each OS, and branch implementations using adaptive UIs after consulting with designers.


"Branching the implementation of in-app payment integration with each store" is one of the first concerns that comes to mind for those with such implementation experience.
How do you handle the processing of what is only required for Android, or on the contrary, only for iOS? In particular, how should we absorb differences on the platform side, such as subscription plan changes?


Fortunately, the development of libraries that wrap the processing for both operating systems are underway and open to the public as OSS.
In this presentation, based on my experience of implementing in-app billing using such library, I will mainly explain how to migrate PlayStore-specific implementations to Flutter, and also other various topics such as what you need to keep in mind when developing cross-platform apps.



The contents of this presentation are planned as follow.


Introduction of the library used
Internal implementation explanation
Compatibility with Android native API
Implementations Flow
Purchase
Restore Purchase
Subscription Plan Change
Receiving Purchase Results

DroidKaigi 2023 Session timetable/Slide link - https://2023.droidkaigi.jp/en/timetab...

---------

DroidKaigi is a conference tailored for Android developers. It took place on the 14, 15, and 16 of September 2023.

All participants at DroidKaigi are required to agree with the DroidKaigi Code of Conduct.
This will be enforced on social media and YouTube comments and chats as well:
https://portal.droidkaigi.jp/en/about...

DroidKaigi 2023 and more - https://2023.droidkaigi.jp/

DroidKaigi on X -   / droidkaigi  

#Android #DroidKaigi

----
The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.