iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 27
0
Mobile Development

老姐好像要用 Kotlin 寫專案,能撐30天嗎?系列 第 27

頭暈目眩的第二十七天:google 開發者帳戶

『叮咚、叮咚。』綿延不止的推播通知聲讓老姐有點尷尬:「雖然推播通知寫好了很棒,不過這樣好像和 websocket 功能衝突了,而且這只是個小遊戲,大家應該也不想常常收到通知。」

太多通知會讓人想移除 app 呢。「也是啦,那就限縮推播通知的功能,細節我晚點再想想。妳 google 開發者帳戶買了沒?」

「好啦好啦我馬上買。」老姐嘆氣,心不甘情不願地拿出錢包。

怕老姐又打退堂鼓,我坐在她旁邊監視著她。

看到年齡限制,老姐『噗嗤』的笑出來:「原來只要18歲就可以註冊了啊,感覺錯過了好多。」

https://support.google.com/googleplay/android-developer/answer/6112435?hl=zh-Hant
https://ithelp.ithome.com.tw/upload/images/20201006/20129197YXSaslkxsl.png

https://ithelp.ithome.com.tw/upload/images/20201006/20129197ArRRygRT0u.png

我提醒她:「海外刷卡會收手續費,所以要找高回饋的卡唷。」

老姐覺得我鄙視了她的智商:「當然囉,喔,匯率 28.8 ,所以不算手續費的話 720 台幣呀。」

因為 google 會先試刷 1 美金,所以馬上就知道匯率。

https://ithelp.ithome.com.tw/upload/images/20201006/201291974HFMhlAOjG.png

在填商家資料的地方,我和老姐比寫程式的時候更加絞盡腦汁。

https://ithelp.ithome.com.tw/upload/images/20201006/20129197h14eXJdW31.png

總算在 google play 後台建立了 App 欄位 ,我催促她:「趕快開啟 App 的內購功能。」

https://ithelp.ithome.com.tw/upload/images/20201006/201291971HRHHQL8YA.png

「沒那麼快啦,要先填收款資料。」老姐安撫我。

https://ithelp.ithome.com.tw/upload/images/20201006/20129197cl1ebWHcrV.png

https://ithelp.ithome.com.tw/upload/images/20201006/20129197yfUc8Ipivi.png

「原來收到的不是台幣⋯⋯」我大為吃驚!

https://ithelp.ithome.com.tw/upload/images/20201006/20129197iMaNVpTQSF.png

「對,是美金,而且還是海外匯款,要填 SWIFT BIC ,這東西還要去銀行查。」老姐慶幸:「幸好之前就有開外幣帳戶,這家銀行也有外匯教學。」

https://www.ctbcbank.com/html/applyform/remittance-notes-ebank.pdf
https://ithelp.ithome.com.tw/upload/images/20201006/20129197hFmb8DDeBI.png

「接下來只剩在 APP 程式做對應修改了⋯⋯」

https://ithelp.ithome.com.tw/upload/images/20201006/20129197mwc0qmEp8Z.png

老姐在 AndroidManifest.xml 加上帳單權限,接著把 app 專案打包成 app-release.aab 上傳到封閉測試版本。

<uses-permission android:name="com.android.vending.BILLING" />

https://ithelp.ithome.com.tw/upload/images/20201006/201291979WWwRJq7xO.png
https://ithelp.ithome.com.tw/upload/images/20201006/20129197X9hSLmk9XA.png
https://ithelp.ithome.com.tw/upload/images/20201006/20129197WLG5OVCSZ5.png
https://ithelp.ithome.com.tw/upload/images/20201006/20129197bovhJbEcXs.png

老姐開心的說:「看起來沒啥問題,接下來要開始研究廣告和付費功能了,下個版本上傳之後就能看到產品清單了。」

https://ithelp.ithome.com.tw/upload/images/20201006/20129197x7YyQyiuxF.png

這一連串的設定只讓我感到頭暈目眩,不過錢交出去就沒回頭路了!

本次鐵人賽的作品在放進更多內容後已經成書,書名是《老姐要用Kotlin寫專案:從 Server 到 Android APP 的開發生存日記》,歡迎購買唷。https://www.tenlong.com.tw/products/9789864348978


上一篇
合作愉快的第二十六天:聊天室功能調整和 FCM 推播(下)
下一篇
總之上傳的第二十八天:Docker Image 和 Heroku
系列文
老姐好像要用 Kotlin 寫專案,能撐30天嗎?30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言