Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathanwalker/ionic-nativescript
Angular Ionic app built with Capacitor and NativeScript
https://github.com/nathanwalker/ionic-nativescript
android angular capacitor ionic ios nativescript typescript
Last synced: 6 days ago
JSON representation
Angular Ionic app built with Capacitor and NativeScript
- Host: GitHub
- URL: https://github.com/nathanwalker/ionic-nativescript
- Owner: NathanWalker
- Created: 2021-04-08T05:53:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-19T19:38:03.000Z (over 3 years ago)
- Last Synced: 2024-12-20T00:41:47.313Z (18 days ago)
- Topics: android, angular, capacitor, ionic, ios, nativescript, typescript
- Language: TypeScript
- Homepage:
- Size: 1.56 MB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Angular Ionic app built with Capacitor + NativeScript
This example app demonstrates the following:
* Angular Ionic app built with Capacitor
* Usage of [@nativescript/capacitor](https://capacitor.nativescript.org/) to help solve real world issues
* Native iOS/Android UI with Web Dom interactions
* How to build a native video streaming player yourself with NativeScript for Capacitor
* How to handle battery level change system notifications for iOS and Android using NativeScript for CapacitorThe Musical video clips used herein are only samples from recorded musical productions for free fairplay use and not intended to be high quality reproductions of those musicals in anyway.
https://user-images.githubusercontent.com/457187/117690782-13b4c680-b170-11eb-997a-cb3f812a2a5f.mp4
## Reference docs
* https://ionicframework.com/
* https://capacitorjs.com/
* https://capacitor.nativescript.org/## Take it for a spin
Run this after cloning:
```
npm run clean
```NOTE: If you get prompted about installing `webpack` you can choose 'y'. This may prompt when using npm 7+.
It will set things up.
Now build it and prepare:
```
npm run build:mobile
npx cap sync
```You can now run on either iOS or Android:
```
npx cap open ios
// or...
npx cap open android
```## Troubleshooting
### Android
1. If you see a build/run issue related to 'node', for example like this:
```
> Task :capacitor-android:compileDebugLibraryResources
> Task :app:runSbg FAILED
Error executing Static Binding Generator: java.io.IOException: Cannot run program "node": error=2, No such file or directory
```This means Android Studio could not find node. Close and open Android Studio via Terminal as follows which will help:
```
open -a "Android Studio"
```2. If you see an issue like this in the build log:
```
Caused by: java.lang.ClassNotFoundException: Didn't find class "io.nstudio.ngconf2021.CustomActivity" on path: DexPathList
```This usually means a good project clean is needed. Try doing a full 'Project Clean' in Android Studio and build/run. If you still see the issue, try running once more - usually related to a clean/build cycle with Android Studio.
### iOS
Picture-in-Picture mode works only on a real device. You can plug an iPhone in and launch on your phone from Xcode to experience the PIP mode.