“The decisions we make about communication security today will determine the kind of society we live in tomorrow.” — Dr. Whitfield Diffie, co-creator of public key cryptography and advisor to NKN
For more detail:
https://forum.nkn.org/t/nmobile-the-trusted-chat/2358
https://forum.nkn.org/t/nmobile-pre-beta-community-testing-and-simple-guide/2012
- Flutter sdk: https://flutter.dev/docs/get-started/install
- golang (>= 1.18.0): https://golang.org/dl/
- gomobile: https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile
Android need NDK (>= 21.x) https://developer.android.com/studio/projects/install-ndk
$ flutter pub run flutter_launcher_icons:main
Every time you modify go code, you need to recompile.
gomobile will generate dependencies for android and ios. Android is nkn.aar and nkn-sources.jar, iOS is Nkn.xcframework.
$ cd golib
- Build
Androiddependencies
$ make android
- Build
iOSdependencies
$ make ios
- Updating package dependencies
$ flutter pub get
- If it is
iOS, you also need to run the following command for updateiOSdependencies
$ cd ios
$ pod install
$ flutter run
- Using Flutter Intl plugin for generate intl files: https://plugins.jetbrains.com/plugin/13666-flutter-intl
- On your first launch, you can create an account without a password.
- The app generates a default, device-only account automatically so you can start using it immediately.
- No data is uploaded to any server during this step.
- If you prefer to use your own account, you can import an existing wallet at any time.
- Open the app and go to: Settings → Account → Import Wallet.
- Follow the on-screen steps to complete the import.
- After import, your wallet becomes your active account.
- Your keys are stored locally on your device. Make sure you back them up safely.
- You can keep using the default account or switch to your own wallet later—your choice.
- If you import a wallet, ensure you’re in a private, secure environment.