Skip to content

Commit

Permalink
apply fix for app crash for iOS 12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
asharaky committed Apr 1, 2019
1 parent 0e95173 commit c5becab
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@


## Applied fix for app crash for iOS 12.2

https://github.com/katzer/cordova-plugin-background-mode/issues/419#issuecomment-473851949


<p align="left">
<b><a href="https://github.com/katzer/cordova-plugin-background-mode/tree/example">SAMPLE APP</a> :point_right:</b>
</p>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "cordova-plugin-background-mode",
"name": "cordova-plugin-background-mode-ff",
"version": "0.7.2",
"description": "Prevent apps from going to sleep in background.",
"cordova": {
"id": "cordova-plugin-background-mode",
"id": "cordova-plugin-background-mode-ff",
"platforms": [
"ios",
"android",
Expand All @@ -12,7 +12,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/katzer/cordova-plugin-background-mode.git"
"url": "git+https://github.com/asharaky/cordova-plugin-background-mode.git"
},
"keywords": [
"appplant",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-background-mode"
id="cordova-plugin-background-mode-ff"

This comment has been minimized.

Copy link
@aborovsky

aborovsky Apr 3, 2019

why ff?

This comment has been minimized.

Copy link
@asharaky

asharaky Apr 3, 2019

Author Owner

It's just a suffix to differentiate it from the other plugin

This comment has been minimized.

Copy link
@aborovsky

aborovsky via email Apr 3, 2019

This comment has been minimized.

Copy link
@asharaky

asharaky Apr 3, 2019

Author Owner

I just tried it on iOS and it worked. The files paths are relative so it should work.



This comment has been minimized.

Copy link
@aborovsky

aborovsky via email Apr 3, 2019

version="0.7.2">

<name>BackgroundMode</name>
Expand Down
2 changes: 1 addition & 1 deletion src/ios/APPBackgroundMode.m
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ - (void) fireEvent:(NSString*)event
*/
+ (NSString*) wkProperty
{
NSString* str = @"X2Fsd2F5c1J1bnNBdEZvcmVncm91bmRQcmlvcml0eQ==";
NSString* str = @"YWx3YXlzUnVuc0F0Rm9yZWdyb3VuZFByaW9yaXR5";
NSData* data = [[NSData alloc] initWithBase64EncodedString:str options:0];

return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
Expand Down

0 comments on commit c5becab

Please sign in to comment.