Skip to content

Commit 30e4b17

Browse files
committed
fixes #11, splashscreen fixes
1 parent b1a1904 commit 30e4b17

29 files changed

+16
-8
lines changed

config.xml

+4-5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<icon src="resources/ios/icon/[email protected]" width="114" height="114"/>
4040
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
4141
<icon src="resources/ios/icon/[email protected]" width="80" height="80"/>
42+
<icon src="resources/ios/icon/[email protected]" width="120" height="120"/>
4243
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
4344
<icon src="resources/ios/icon/[email protected]" width="100" height="100"/>
4445
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
@@ -48,15 +49,13 @@
4849
<icon src="resources/ios/icon/[email protected]" width="144" height="144"/>
4950
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
5051
<icon src="resources/ios/icon/[email protected]" width="152" height="152"/>
52+
<icon src="resources/ios/icon/[email protected]" width="167" height="167"/>
5153
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
5254
<icon src="resources/ios/icon/[email protected]" width="58" height="58"/>
5355
<icon src="resources/ios/icon/[email protected]" width="87" height="87"/>
5456
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
5557
<splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/>
5658
<splash src="resources/ios/splash/Default-736h.png" width="1242" height="2208"/>
57-
<splash src="resources/ios/splash/Default-Landscape-736h.png" width="2208" height="1242"/>
58-
<splash src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
59-
<splash src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" height="768"/>
6059
<splash src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
6160
<splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
6261
<splash src="resources/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
@@ -77,7 +76,7 @@
7776
<feature name="StatusBar">
7877
<param name="ios-package" onload="true" value="CDVStatusBar"/>
7978
</feature>
80-
<icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
79+
<icon src="resources/ios/icon/icon-small@3x.png"/>
8180
<plugin name="cordova-plugin-geolocation" spec="~2.1.0"/>
8281
<plugin name="cordova-plugin-geolocation-tests" spec="http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation#:/tests"/>
8382
<plugin name="cordova-plugin-geofence" spec="https://github.com/cowbell/cordova-plugin-geofence.git"/>
@@ -89,4 +88,4 @@
8988
<plugin name="cordova-plugin-splashscreen" spec="~3.1.0"/>
9089
<plugin name="cordova-plugin-statusbar" spec="~2.1.0"/>
9190
<plugin name="ionic-plugin-keyboard" spec="~1.0.8"/>
92-
</widget>
91+
</widget>

ionic.project

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "ionic2-geofence",
3+
"app_id": ""
4+
}

resources/ios/icon/icon-40.png

365 Bytes
Loading

resources/ios/icon/[email protected]

-2.56 KB
Loading

resources/ios/icon/[email protected]

6.38 KB
Loading

resources/ios/icon/icon-50.png

29 Bytes
Loading

resources/ios/icon/[email protected]

-3.46 KB
Loading

resources/ios/icon/icon-60.png

-1.83 KB
Loading

resources/ios/icon/[email protected]

-4.12 KB
Loading

resources/ios/icon/[email protected]

-6.52 KB
Loading

resources/ios/icon/icon-72.png

-1.85 KB
Loading

resources/ios/icon/[email protected]

-5.35 KB
Loading

resources/ios/icon/icon-76.png

-2.52 KB
Loading

resources/ios/icon/[email protected]

-5.55 KB
Loading

resources/ios/icon/[email protected]

9.83 KB
Loading

resources/ios/icon/icon-small.png

336 Bytes
Loading

resources/ios/icon/[email protected]

64 Bytes
Loading

resources/ios/icon/[email protected]

-2.71 KB
Loading

resources/ios/icon/icon.png

194 Bytes
Loading

resources/ios/icon/[email protected]

-4.26 KB
Loading
-16.7 KB
Loading

resources/ios/splash/Default-667h.png

-21.6 KB
Loading

resources/ios/splash/Default-736h.png

-77.2 KB
Loading
-71.8 KB
Loading
Loading
-2.28 KB
Loading
-118 Bytes
Loading

src/app/app.component.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export class MyApp {
3030
window.TransitionType = TransitionType;
3131
}
3232

33-
window.geofence.initialize().then(() => {
33+
window.geofence.initialize().then((initStatus) => {
34+
console.log("Geofence Plugin has been initialized", initStatus);
3435
window.geofence.onTransitionReceived = function (geofences) {
3536
geofences.forEach(function (geo) {
3637
console.log("Geofence transition detected", geo);
@@ -40,6 +41,8 @@ export class MyApp {
4041
window.geofence.onNotificationClicked = function (notificationData) {
4142
console.log("App opened from Geo Notification!", notificationData);
4243
};
44+
}).catch((error) => {
45+
console.error(error);
4346
})
4447
});
4548
}

src/pages/geofence-list/geofence-list.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ export class GeofenceListPage {
3232
this.menu.enable(true);
3333
}
3434

35-
ionViewLoaded() {
36-
Splashscreen.hide();
35+
ionViewDidLoad() {
36+
this.platform.ready().then(() => {
37+
Splashscreen.hide();
38+
});
3739
}
3840

3941
new() {

0 commit comments

Comments
 (0)