{"id":16427321,"url":"https://github.com/bettysteger/flutter_pwa_wrapper","last_synced_at":"2025-04-07T15:10:24.276Z","repository":{"id":51060537,"uuid":"520228131","full_name":"bettysteger/flutter_pwa_wrapper","owner":"bettysteger","description":"Flutter Wrapper for your PWA. Wrapping your website in a native app with native push notifications and communication to the \"inner\" JavaScript!","archived":false,"fork":false,"pushed_at":"2024-11-13T23:30:06.000Z","size":559,"stargazers_count":89,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-31T14:11:17.465Z","etag":null,"topics":["android","flutter","ios","js","progressive-web-app","pwa","web","webapp"],"latest_commit_sha":null,"homepage":"https://bettysteger.github.io/flutter_pwa_wrapper/","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bettysteger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"bettysteger","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-08-01T18:53:17.000Z","updated_at":"2025-03-31T14:01:56.000Z","dependencies_parsed_at":"2024-12-27T06:06:57.278Z","dependency_job_id":null,"html_url":"https://github.com/bettysteger/flutter_pwa_wrapper","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"7b8b21f4dce988665021f1c5e63a7cbe4d1fda81"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bettysteger%2Fflutter_pwa_wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bettysteger%2Fflutter_pwa_wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bettysteger%2Fflutter_pwa_wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bettysteger%2Fflutter_pwa_wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bettysteger","download_url":"https://codeload.github.com/bettysteger/flutter_pwa_wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675607,"owners_count":20977378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","flutter","ios","js","progressive-web-app","pwa","web","webapp"],"created_at":"2024-10-11T08:12:25.908Z","updated_at":"2025-04-07T15:10:24.252Z","avatar_url":"https://github.com/bettysteger.png","language":"Dart","funding_links":["https://github.com/sponsors/bettysteger"],"categories":[],"sub_categories":[],"readme":"# Flutter PWA Wrapper\n\nWrapping your website in a native app with native push notifications and communication to the \"inner\" JavaScript!\n\n## Setup \n\n1. Install [Flutter](https://docs.flutter.dev/get-started/install).\n2. Go to `main.dart` and edit SETTINGS:\n\n```\nclass SETTINGS {\n  static const title = 'Flutter PWA Wrapper';\n  static const url = 'https://bettysteger.com/flutter_pwa_wrapper/demo/'; \n}\n```\n\n### Set-up Push Notifications \n\n1. Create [Firebase](https://console.firebase.google.com/) App \n\nRegister an iOS App, add your Apple bundle ID and download `GoogleService-Info.plist`. Open `ios/Runner.xcodeproj`. Move the `GoogleService-Info.plist` inside the `Runner` folder. You can ignore the next instructions in the Firebase setup wizard. Follow these [instructions](https://firebase.flutter.dev/docs/messaging/apple-integration) instead!\n\n![Enable Apple Push Notification](https://images.prismic.io/invertase/74bd1df4-c9e9-465c-9e0f-cacf6e26d68c_7539b8ec-c310-40dd-91e5-69f19009786f_apple-fcm-upload-key.gif?auto=compress,format)\n\n\n2. Debugging\n\nEither do a `flutter run` in the console (will open iOS simulator if no device is connected) or **Run \u003e Start Debugging** in VSCode (install [Flutter extension](https://docs.flutter.dev/get-started/editor?tab=vscode)).\n\nRun the flutter app on your iOS device and click \"Enable Notification\" from the demo page. Copy the device token to the **Firebase Cloud Messaging \u003e Compose notification \u003e Send test message**:\n\n![Send test message](docs/test-push.png)\n\n### How to use in JavaScript\n\nSee [demo](https://github.com/bettysteger/flutter_pwa_wrapper/blob/main/docs/demo/index.html):\n\n```\n/**\n * This function is called by Flutter after `Notification.requestPermission` below is executed\n */\nfunction setPushToken(token) { \n  // save token to current logged-in user in your DB \n} \n\nNotification.requestPermission()\n```\n\n\n## Development\n\n### Run \n\nEither do a `flutter run` in the console (will open iOS simulator if no device is connected) or **Run \u003e Start Debugging** in VSCode (install [Flutter extension](https://docs.flutter.dev/get-started/editor?tab=vscode)).\n\n### Add a plugin\n\n`flutter pub add firebase_core`\n\n### Generate app icons \u0026 splash screen\n\nSee [flutter_launcher_icons](https://pub.dev/packages/flutter_launcher_icons)\n\n`flutter pub run flutter_launcher_icons:main`\n\nSee [splash_screen_view](https://pub.dev/packages/splash_screen_view)\n\n`flutter pub run splash_screen_view:create`\n\n### Build ios\n\n`flutter build ipa \u0026\u0026 open build/ios/archive/Runner.xcarchive`\n\n### Build android\n\nSigned with `/Applications/Android\\ Studio.app/Contents/jre/jdk/Contents/Home/bin/keytool -genkey -v -keystore keys/keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias FlutterApp`\n\n`flutter build appbundle --release --no-tree-shake-icons \u0026\u0026 open build/app/outputs/bundle/release/`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbettysteger%2Fflutter_pwa_wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbettysteger%2Fflutter_pwa_wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbettysteger%2Fflutter_pwa_wrapper/lists"}