You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-6Lines changed: 27 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,37 @@ description: Starts native view from a cordova app.
7
7
8
8
Start or Back to a UIViewController(_ios_) or Activity(_Android_) relative to your cordova app.
9
9
10
-
You can use this in a standalone project (basic cordova project), or into a existing native _Android/IOS_ application, like descibed in [Embed Cordova in native apps](https://cordova.apache.org/docs/en/latest/guide/hybrid/webviews/index.html)
10
+
You can use this in a standalone project (basic cordova project), or into a existing native _Android/IOS_ application, like described in [Embed Cordova in native apps](https://cordova.apache.org/docs/en/latest/guide/hybrid/webviews/index.html)
11
11
12
-
> **OBS:** If you wish just exit from cordova app or back to native view (Android only), use: `navigator['app'].exitApp()`
12
+
> **OBS:** If you wish just **EXIT** from cordova app or back to native view (Android only), use: `navigator['app'].exitApp()`
* Copy the `config.xml` from your cordova project to root XCode project directory.
22
39
* Install [cocoapods](https://cocoapods.org/)
23
-
* Add this plugin like a `pod`:
40
+
* Add this plugin like a [pod](https://guides.cocoapods.org/syntax/podfile.html) dependency:
24
41
25
42
```ruby
26
43
# Objective-C version (Default)
@@ -34,7 +51,11 @@ pod 'cordova-plugin-nativeview', :git => 'https://github.com/mfdeveloper/cordova
34
51
35
52
Until here, this plugin is not registered on cloud. In future, this plugin will be on [jcenter](https://bintray.com/bintray/jcenter) and/or [mavencentral](https://search.maven.org/). By now, you need:
36
53
37
-
* From your cordova project, copy the content off `platforms/android/assets/www` folder to your android project (usually, `app/src/main/assets`). Or create a **gradle** task to do this.
54
+
* From your cordova project:
55
+
56
+
- Copy the content off `platforms/android/assets/www` folder to your android project (usually, `app/src/main/assets`).
57
+
Or create a **gradle** task to do this.
58
+
- Copy the `config.xml` to `src/main/res/xml` android project folder.
38
59
39
60
* Clone this repo, and copy the class: `src/android/NativeView.java` to your Android project
0 commit comments