-
Notifications
You must be signed in to change notification settings - Fork 4
/
how-to-make-mobile-app.txt
66 lines (46 loc) · 2.06 KB
/
how-to-make-mobile-app.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
JAVASCRIPT MOBILE APP TEMPLATE AND UI COMPONENTS
(PLATFORMS; ANDROID, iOS)
Website: https://bug7a.github.io/javascript-mobile-app-template/
Handbook: https://bug7a.github.io/basic.js-handbook/
This template, can be used to develop mobile applications with:
- Ionic/Capacitor Native Runtime (recommended) or
- Apache Cordova Framework.
*** USAGE WITH IONIC / CAPACITOR NATIVE RUNTIME:
CREATE APP DOCUMENTS:
https://capacitorjs.com/docs/getting-started
TUTORIAL VIDEOS (on YouTube):
- How to make an Android and iOS application?
https://youtu.be/rx-z6-_FwU8
SETTINGS FOR CAPACITOR PROJECT:
- Set "bundledwebRuntime": true in "capacitor.config.json" file.
Then Capacitor will create a "capacitor.js" file.
PLUGIN LIST:
https://capacitorjs.com/docs/apis
PLUGIN USAGE:
- Just add "Capacitor.Plugins." before plugin name.
NOTE: Because it doesn't work as a module.
EXAMPLE CODE:
const showConfirm = async () => {
const { value } = await Capacitor.Plugins.Dialog.confirm({
title: 'Confirm',
message: `Are you sure you'd like to press the red button?`,
});
console.log('Confirmed:', value);
};
showConfirm();
NOTE: Dont forget to install the Dialog plugin to test example code: npm install @capacitor/dialog
NOTE: Errors in javascript code; It can be followed via xcode or android studio.
*** USAGE WITH CORDOVA FRAMEWORK:
CREATE APP DOCUMENTS:
https://cordova.apache.org/docs/en/latest/guide/cli/index.html
TUTORIAL VIDEOS:
- How to make an Android application? (Language: Turkish)
https://www.youtube.com/watch?v=B6x7yKhKZbY
- How to make an iOS application? (Language: Turkish)
https://www.youtube.com/watch?v=WZZwiI_5WQA
SETTINGS FOR YOUR CORDOVA PROJECT:
- Add these settings to your cordova project config.xml file:
<preference name="DisallowOverscroll" value="true" />
<preference name="Orientation" value="portrait" />
PLUGIN LIST:
https://cordova.apache.org/plugins/