發表文章

目前顯示的是 6月, 2021的文章

Admob set test devices with your Advertising ID

圖片
  想買電腦卻沒錢: 開發android app的電腦已經用了5年,很想換.但沒錢,很可憐. 但信用卡已經刷爆,不能再刷了. 寫app程式真的好累且好花錢阿. . 另外,我發現...原來寫程式/app環境需要安靜,這是必要條件,另外還需要環境溫度保持26度c,太冷或太熱都不可以,當環境溫度到達29.8度c時,因為太熱,心情就會開始煩躁,就無法安心坐下寫程式.更何況燒腦的研發更不可能. 因此可知道,寫app根本跟養雞是一樣的情況,環境溫度濕度需要保持舒適,也不能太擠,這樣母雞才能安心下蛋.所以這一切都是飼主的責任啊. 很多老闆會認為寫程式的工程師,為什麼有時候做沒多久就離職,或是發現其工作效率不佳.以為老闆有付了薪水就沒事了.但真實原因工程師也不願說, 老闆們似乎都沒有思考過,這可能是工程師開發環境的問題.不顧這而只會一昧責怪工程師. 當工程師受不了,當然會另覓出路. . 好啦,來講講正題,沒有錢是無法開發app的,一切都需要燒錢,要買開發設備, 工程師也要吃飯,還要付電費,冷氣費.app上架註冊費,apple的開發者帳號也要年費. 伺服器也要錢.internet網路費也要,測試手機裝置也要錢.尤其app開發時沒有實機,都在模擬器上測試,常常會發生許多上架後才發生的未知的問題.所以對開發者而言,iphone/ipad/android tablet 都不能少的. 因此,常常有人為了要賺錢,於是不擇手段,會自己或是去要求朋友幫忙點擊自己app的廣告. 然而Admob是嚴格禁止app開發者或其有關係的人自己點自己的廣告, admob可以偵測得出來,所以不要跟admob鬥智. 比如說雖然我沒有點自己的廣告,但有時admob還是會偵測出有誤點自己設計的app上的廣告的情況.但我沒有點自己的廣告阿,其實原因是app使用者誤點也算. 在每個月收益都會自動扣除.如下所示:   May 1 – 31, 2021   Invalid Traffic - AdMob Applications - AdWords Ads     −$17.15 大家可以知道,誤點的或自己點的,或是user誤按的,都會被admob 偵測出來. 但是,有時候我們在測試app時,有時候會不小心誤按到廣告. 這就危險了.這有時是app廣告位置的問題,若是一直發生誤按,admob會判斷你違規. 很恐怖的. 所以我們要

Flutter: TextButton and build fail issue

圖片
為了達成寫一套code就能在兩個平台跑的目標,一直不斷練習寫flutter. 然而寫flutter前一定要有android 或ios 開發的基礎, 不然會遇到很多困難. 例如我就遇到android studio內的build.gradle設定問題,跟android X有關. 編譯時一直出現紅字, Caused by: java.lang.ClassNotFoundException: Didn't find class “xxxx.xxx.xxx” on path: DexPathList error  查看 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="$APP_DOMAIN">  <application android:name="io.flutter.app.FlutterApplication" android:label="$APP_NAME" android:icon="@mipmap/ic_launcher"> <activity android:name= ".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <meta-data android:name="io.flutter.app.android.SplashScreenUntil

google對android app開發者的app內購與付費app只收15%手續費優惠之設定的方法(Create an account group for 15% off android app service fee)

圖片
 最近收到這通知: It's time to enroll for the 15% service fee Jun 9, 2021 18:25 In March 2021, we announced that starting July 1, 2021, the service fee will be 15% instead of 30% for the first $1M (USD) you earn each year when you sell digital goods or services. Starting today, you can enroll for the 15% service fee in Google Play Console. To enroll, you will need to: Create an account group and let us know if you have any associated developer accounts Accept the service fee terms and conditions Because we're launching the program halfway through the year, the threshold will be prorated so the service fee will be 15% instead of 30% for the first $500,000 (USD). If enrollment is completed after July 1st, earnings are counted from the day you enroll. For more details, select Learn more.   但是怎麼建立 account group 呢? 如下圖步驟: 雖然很簡單,但google 說明沒有寫得很詳細,很多人不知道在哪裡. 建立之後的樣子如下圖: s   建立account group才能享有15%手續費優惠. 這樣google對android app的內購或販售付費app的手續費就從扣30%變只扣15%. 好棒啊. 但別高興太早,要收到這錢也需要你的app是