zap.me test app
See config.dart
See https://pub.dev/packages/rename
See https://pub.dev/packages/flutter_launcher_icons
See https://pub.dev/packages/uni_links
See https://firebase.google.com/docs/flutter/setup
Android: change the android/app/google-services.json file iOS: change the ios/Runner/GoogleService-Info.plist file
- Generate icon resource: https://romannurik.github.io/AndroidAssetStudio/icons-notification.html
- Update Manifest: https://firebase.google.com/docs/cloud-messaging/android/client#manifest
- Upload APNS auth key https://firebase.google.com/docs/cloud-messaging/ios/client#upload_your_apns_authentication_key
- Or upload an APNS certificate https://developer.apple.com/account/resources/certificates/list (which you will need to convert from cer to p12 format, on mac the easiest way is to import then export from keychain - https://stackoverflow.com/a/44696730/206529)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
</head>
<body>
....
<script>
window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
if (typeof window.flutter_inappwebview !== "undefined") {
window.flutter_inappwebview.callHandler('getLocation').then(function(loc) {
console.log(JSON.stringify(loc));
alert(JSON.stringify(loc));
});
}
});
</script>
</body>
</html>