Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
41b51ab6
Commit
41b51ab6
authored
Oct 09, 2015
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update iOS platform
parent
a02e1b72
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
286 additions
and
654 deletions
+286
-654
build.gradle
platforms/android/build.gradle
+1
-0
project.properties
platforms/android/project.properties
+2
-0
settings.gradle
platforms/android/settings.gradle
+3
-0
project.pbxproj
...forms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
+2
-1
CordovaLib.xcscheme
...rdata/sebastian.xcuserdatad/xcschemes/CordovaLib.xcscheme
+8
-5
project.pbxproj
platforms/ios/NotificationExample.xcodeproj/project.pbxproj
+56
-54
NotificationExample.xccheckout
...t.xcworkspace/xcshareddata/NotificationExample.xccheckout
+0
-41
UserInterfaceState.xcuserstate
...data/sebastian.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
NotificationExample.xcscheme
...astian.xcuserdatad/xcschemes/NotificationExample.xcscheme
+8
-5
NotificationExample-Info.plist
...ms/ios/NotificationExample/NotificationExample-Info.plist
+172
-173
APPLocalNotificationOptions.m
...a.plugin.local-notification/APPLocalNotificationOptions.m
+1
-1
UILocalNotification+APPLocalNotification.m
...l-notification/UILocalNotification+APPLocalNotification.m
+1
-1
exec.js
platforms/ios/www/cordova-js-src/exec.js
+0
-323
platform.js
platforms/ios/www/cordova-js-src/platform.js
+0
-28
plugin.xml
.../de.appplant.cordova.plugin.local-notification/plugin.xml
+1
-1
APPLocalNotificationOptions.m
....local-notification/src/ios/APPLocalNotificationOptions.m
+2
-2
UILocalNotification+APPLocalNotification.m
...cation/src/ios/UILocalNotification+APPLocalNotification.m
+1
-1
fetch.json
plugins/fetch.json
+15
-6
ios.json
plugins/ios.json
+13
-12
No files found.
platforms/android/build.gradle
View file @
41b51ab6
...
...
@@ -248,6 +248,7 @@ dependencies {
// SUB-PROJECT DEPENDENCIES START
debugCompile
project
(
path:
":CordovaLib"
,
configuration:
"debug"
)
releaseCompile
project
(
path:
":CordovaLib"
,
configuration:
"release"
)
compile
"com.android.support:support-v4:+"
// SUB-PROJECT DEPENDENCIES END
}
...
...
platforms/android/project.properties
View file @
41b51ab6
...
...
@@ -12,3 +12,4 @@
# Project target.
target
=
android-22
android.library.reference.1
=
CordovaLib
cordova.system.library.1
=
com.android.support:support-v4:+
\ No newline at end of file
platforms/android/settings.gradle
0 → 100644
View file @
41b51ab6
// GENERATED FILE - DO NOT EDIT
include
":"
include
":CordovaLib"
platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
View file @
41b51ab6
...
...
@@ -325,7 +325,7 @@
0867D690FE84028FC02AAC07
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
0
51
0
;
LastUpgradeCheck
=
0
70
0
;
};
buildConfigurationList
=
1DEB922208733DC00010E9CD
/* Build configuration list for PBXProject "CordovaLib" */
;
compatibilityVersion
=
"Xcode 3.2"
;
...
...
@@ -432,6 +432,7 @@
CLANG_WARN_ENUM_CONVERSION
=
YES
;
CLANG_WARN_INT_CONVERSION
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
ENABLE_TESTABILITY
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
c99
;
GCC_OPTIMIZATION_LEVEL
=
0
;
GCC_PREPROCESSOR_DEFINITIONS
=
""
;
...
...
platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/sebastian.xcuserdatad/xcschemes/CordovaLib.xcscheme
View file @
41b51ab6
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
64
0"
LastUpgradeVersion =
"0
70
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -23,21 +23,24 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
buildConfiguration =
"Debug"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Debug"
ignoresPersistentStateOnLaunch =
"NO"
debugDocumentVersioning =
"YES"
debugServiceExtension =
"internal"
allowLocationSimulation =
"YES"
>
<MacroExpansion>
<BuildableReference
...
...
@@ -52,10 +55,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration =
"Release"
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
debugDocumentVersioning =
"YES"
>
<MacroExpansion>
<BuildableReference
...
...
platforms/ios/NotificationExample.xcodeproj/project.pbxproj
View file @
41b51ab6
...
...
@@ -5,14 +5,10 @@
};
objectVersion
=
46
;
objects
=
{
/* Begin PBXBuildFile section */
0ECEF97594F04776B7BE0C66
/* Toast+UIView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1DE50EBD09D2455DBC5D351E
/* Toast+UIView.m */
;
};
1C584EB51F3C426D8A25DAAF
/* AppDelegate+APPRegisterUserNotificationSettings.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
D5869E30F00647C1A2399FAC
/* AppDelegate+APPRegisterUserNotificationSettings.m */
;
};
1D3623260D0F684500981E51
/* AppDelegate.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1D3623250D0F684500981E51
/* AppDelegate.m */
;
};
1D60589B0D05DD56006BFB54
/* main.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29B97316FDCFA39411CA2CEA
/* main.m */
;
};
288765FD0DF74451002DB57D
/* CoreGraphics.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
288765FC0DF74451002DB57D
/* CoreGraphics.framework */
;
};
297157BA33654D9294C2E907
/* UILocalNotification+APPLocalNotification.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0EABFA908C98474CA4F6C65A
/* UILocalNotification+APPLocalNotification.m */
;
};
301BF552109A68D80062928A
/* libCordova.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
301BF535109A57CC0062928A
/* libCordova.a */
;
};
302D95F114D2391D003F00A1
/* MainViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
302D95EF14D2391D003F00A1
/* MainViewController.m */
;
};
302D95F214D2391D003F00A1
/* MainViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
302D95F014D2391D003F00A1
/* MainViewController.xib */
;
};
...
...
@@ -32,6 +28,7 @@
30C1856619D5FC0A00212699
/* icon-60@3x.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
30C1856519D5FC0A00212699
/* icon-60@3x.png */
;
};
30FC414916E50CA1004E6F35
/* icon-72@2x.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
30FC414816E50CA1004E6F35
/* icon-72@2x.png */
;
};
5B1594DD16A7569C00FEF299
/* AssetsLibrary.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
5B1594DC16A7569C00FEF299
/* AssetsLibrary.framework */
;
};
6A8F96ADE761487C81E6E457
/* Toast+UIView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
C3A9F0FD8971443ABE2CD997
/* Toast+UIView.m */
;
};
7E7966DE1810823500FA85AD
/* icon-40.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7E7966D41810823500FA85AD
/* icon-40.png */
;
};
7E7966DF1810823500FA85AD
/* icon-40@2x.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7E7966D51810823500FA85AD
/* icon-40@2x.png */
;
};
7E7966E01810823500FA85AD
/* icon-50.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7E7966D61810823500FA85AD
/* icon-50.png */
;
};
...
...
@@ -42,13 +39,15 @@
7E7966E51810823500FA85AD
/* icon-76@2x.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7E7966DB1810823500FA85AD
/* icon-76@2x.png */
;
};
7E7966E61810823500FA85AD
/* icon-small.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7E7966DC1810823500FA85AD
/* icon-small.png */
;
};
7E7966E71810823500FA85AD
/* icon-small@2x.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7E7966DD1810823500FA85AD
/* icon-small@2x.png */
;
};
9149ECD9BBCA4D8E9134ABC1
/* Toast.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
358531870FE9418D801CA17D
/* Toast.m */
;
};
AD36A476BF534005AC4468ED
/* APPLocalNotification.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
754762A7EDBD428EAA6B1370
/* APPLocalNotification.m */
;
};
AF44493D8C1E426D98DF16EF
/* UIApplication+APPLocalNotification.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2F66F04C3AA942779C1C4F95
/* UIApplication+APPLocalNotification.m */
;
};
CC26E958D783460CB096D087
/* QuartzCore.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
97129848CDCC42118CF1C40D
/* QuartzCore.framework */
;
};
B71D8D446BDD468D91312FC4
/* AppDelegate+APPRegisterUserNotificationSettings.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
52D79A2853814BD1A3A10B7D
/* AppDelegate+APPRegisterUserNotificationSettings.m */
;
};
BFDE0D6A4AE64EBB98F82923
/* Toast.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
29DB052EC20A4E42A76FEEDA
/* Toast.m */
;
};
C34903A0A98845C5B3980421
/* QuartzCore.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
AA0BA11967D24FFF9A8729E3
/* QuartzCore.framework */
;
};
D4A0D8761607E02300AEF8BB
/* Default-568h@2x~iphone.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
D4A0D8751607E02300AEF8BB
/* Default-568h@2x~iphone.png */
;
};
E2C8C56228EF4650921A8C13
/* CDVDevice.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9D377024246144729DE8F96F
/* CDVDevice.m */
;
};
EFFF31CCFEC944568CED9AF2
/* APPLocalNotificationOptions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3D318D53B4C1444BAAA6DAF1
/* APPLocalNotificationOptions.m */
;
};
D4A8F9ED5C744DF9AE0F017C
/* CDVDevice.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3F8F08CF872443B99B4C7F0C
/* CDVDevice.m */
;
};
B27FD1146F2346B8A25D8B58
/* APPLocalNotification.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E4AC231569274FDC9A337CE1
/* APPLocalNotification.m */
;
};
F5781270C72C46AEB4DE2F9A
/* APPLocalNotificationOptions.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0F35C3B0341549BCB67F40AF
/* APPLocalNotificationOptions.m */
;
};
821357C60CE6476988324E2A
/* UIApplication+APPLocalNotification.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6A54961A48724D74972157C8
/* UIApplication+APPLocalNotification.m */
;
};
24888EC32C55469EA588670F
/* UILocalNotification+APPLocalNotification.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DD2C696409F449568F10BD80
/* UILocalNotification+APPLocalNotification.m */
;
};
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
...
...
@@ -69,14 +68,12 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
0EABFA908C98474CA4F6C65A
/* UILocalNotification+APPLocalNotification.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"UILocalNotification+APPLocalNotification.m"
;
path
=
"de.appplant.cordova.plugin.local-notification/UILocalNotification+APPLocalNotification.m"
;
sourceTree
=
"<group>"
;
};
1D3623240D0F684500981E51
/* AppDelegate.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
AppDelegate.h
;
sourceTree
=
"<group>"
;
};
1D3623250D0F684500981E51
/* AppDelegate.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
AppDelegate.m
;
sourceTree
=
"<group>"
;
};
1D6058910D05DD3D006BFB54
/* NotificationExample.app */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.application
;
includeInIndex
=
0
;
path
=
NotificationExample.app
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
1DE50EBD09D2455DBC5D351E
/* Toast+UIView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"Toast+UIView.m"
;
path
=
"nl.x-services.plugins.toast/Toast+UIView.m"
;
sourceTree
=
"<group>"
;
};
288765FC0DF74451002DB57D
/* CoreGraphics.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
CoreGraphics.framework
;
path
=
System/Library/Frameworks/CoreGraphics.framework
;
sourceTree
=
SDKROOT
;
};
29B97316FDCFA39411CA2CEA
/* main.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
main.m
;
sourceTree
=
"<group>"
;
};
2
F66F04C3AA942779C1C4F95
/* UIApplication+APPLocalNotification.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"UIApplication+APPLocalNotification.m"
;
path
=
"de.appplant.cordova.plugin.local-notification/UIApplication+APPLocalNotification
.m"
;
sourceTree
=
"<group>"
;
};
2
9DB052EC20A4E42A76FEEDA
/* Toast.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
Toast.m
;
path
=
"nl.x-services.plugins.toast/Toast
.m"
;
sourceTree
=
"<group>"
;
};
301BF52D109A57CC0062928A
/* CordovaLib.xcodeproj */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.pb-project"
;
name
=
CordovaLib.xcodeproj
;
path
=
CordovaLib/CordovaLib.xcodeproj
;
sourceTree
=
"<group>"
;
};
301BF56E109A69640062928A
/* www */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
folder
;
path
=
www
;
sourceTree
=
SOURCE_ROOT
;
};
302D95EE14D2391D003F00A1
/* MainViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
MainViewController.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -98,14 +95,10 @@
30C1856519D5FC0A00212699
/* icon-60@3x.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"icon-60@3x.png"
;
sourceTree
=
"<group>"
;
};
30FC414816E50CA1004E6F35
/* icon-72@2x.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"icon-72@2x.png"
;
sourceTree
=
"<group>"
;
};
32CA4F630368D1EE00C91783
/* NotificationExample-Prefix.pch */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"NotificationExample-Prefix.pch"
;
sourceTree
=
"<group>"
;
};
358531870FE9418D801CA17D
/* Toast.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
Toast.m
;
path
=
"nl.x-services.plugins.toast/Toast.m"
;
sourceTree
=
"<group>"
;
};
3D318D53B4C1444BAAA6DAF1
/* APPLocalNotificationOptions.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
APPLocalNotificationOptions.m
;
path
=
"de.appplant.cordova.plugin.local-notification/APPLocalNotificationOptions.m"
;
sourceTree
=
"<group>"
;
};
57141DABDB564FD5ADE82848
/* AppDelegate+APPRegisterUserNotificationSettings.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"AppDelegate+APPRegisterUserNotificationSettings.h"
;
path
=
"de.appplant.cordova.common.registerusernotificationsettings/AppDelegate+APPRegisterUserNotificationSettings.h"
;
sourceTree
=
"<group>"
;
};
52D79A2853814BD1A3A10B7D
/* AppDelegate+APPRegisterUserNotificationSettings.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"AppDelegate+APPRegisterUserNotificationSettings.m"
;
path
=
"de.appplant.cordova.common.registerusernotificationsettings/AppDelegate+APPRegisterUserNotificationSettings.m"
;
sourceTree
=
"<group>"
;
};
53BC65B8679643FD87A02C6E
/* Toast+UIView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"Toast+UIView.h"
;
path
=
"nl.x-services.plugins.toast/Toast+UIView.h"
;
sourceTree
=
"<group>"
;
};
5B1594DC16A7569C00FEF299
/* AssetsLibrary.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
AssetsLibrary.framework
;
path
=
System/Library/Frameworks/AssetsLibrary.framework
;
sourceTree
=
SDKROOT
;
};
65E6CB261F3B4A1D990CDFD0
/* APPLocalNotificationOptions.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
APPLocalNotificationOptions.h
;
path
=
"de.appplant.cordova.plugin.local-notification/APPLocalNotificationOptions.h"
;
sourceTree
=
"<group>"
;
};
751EA302B0C545C1ABD2CFB7
/* Toast+UIView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"Toast+UIView.h"
;
path
=
"nl.x-services.plugins.toast/Toast+UIView.h"
;
sourceTree
=
"<group>"
;
};
754762A7EDBD428EAA6B1370
/* APPLocalNotification.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
APPLocalNotification.m
;
path
=
"de.appplant.cordova.plugin.local-notification/APPLocalNotification.m"
;
sourceTree
=
"<group>"
;
};
78A8B88BC41248BBADACCABB
/* UIApplication+APPLocalNotification.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"UIApplication+APPLocalNotification.h"
;
path
=
"de.appplant.cordova.plugin.local-notification/UIApplication+APPLocalNotification.h"
;
sourceTree
=
"<group>"
;
};
78F93C2A583F42ACAE4095E8
/* AppDelegate+APPRegisterUserNotificationSettings.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"AppDelegate+APPRegisterUserNotificationSettings.h"
;
path
=
"de.appplant.cordova.common.registerusernotificationsettings/AppDelegate+APPRegisterUserNotificationSettings.h"
;
sourceTree
=
"<group>"
;
};
7E7966D41810823500FA85AD
/* icon-40.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"icon-40.png"
;
sourceTree
=
"<group>"
;
};
7E7966D51810823500FA85AD
/* icon-40@2x.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"icon-40@2x.png"
;
sourceTree
=
"<group>"
;
};
7E7966D61810823500FA85AD
/* icon-50.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"icon-50.png"
;
sourceTree
=
"<group>"
;
};
...
...
@@ -117,17 +110,23 @@
7E7966DC1810823500FA85AD
/* icon-small.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"icon-small.png"
;
sourceTree
=
"<group>"
;
};
7E7966DD1810823500FA85AD
/* icon-small@2x.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"icon-small@2x.png"
;
sourceTree
=
"<group>"
;
};
8D1107310486CEB800E47090
/* NotificationExample-Info.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
name
=
"NotificationExample-Info.plist"
;
path
=
"../NotificationExample-Info.plist"
;
plistStructureDefinitionIdentifier
=
"com.apple.xcode.plist.structure-definition.iphone.info-plist"
;
sourceTree
=
"<group>"
;
};
97129848CDCC42118CF1C40D
/* QuartzCore.framework */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
wrapper.framework
;
name
=
QuartzCore.framework
;
path
=
System/Library/Frameworks/QuartzCore.framework
;
sourceTree
=
SDKROOT
;
};
9D377024246144729DE8F96F
/* CDVDevice.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
CDVDevice.m
;
path
=
"cordova-plugin-device/CDVDevice.m"
;
sourceTree
=
"<group>"
;
};
AA0BA11967D24FFF9A8729E3
/* QuartzCore.framework */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
wrapper.framework
;
name
=
QuartzCore.framework
;
path
=
System/Library/Frameworks/QuartzCore.framework
;
sourceTree
=
SDKROOT
;
};
B511C166ACE7434AA298EEE0
/* Toast.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
Toast.h
;
path
=
"nl.x-services.plugins.toast/Toast.h"
;
sourceTree
=
"<group>"
;
};
C3A9F0FD8971443ABE2CD997
/* Toast+UIView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"Toast+UIView.m"
;
path
=
"nl.x-services.plugins.toast/Toast+UIView.m"
;
sourceTree
=
"<group>"
;
};
D4A0D8751607E02300AEF8BB
/* Default-568h@2x~iphone.png */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
image.png
;
path
=
"Default-568h@2x~iphone.png"
;
sourceTree
=
"<group>"
;
};
D5869E30F00647C1A2399FAC
/* AppDelegate+APPRegisterUserNotificationSettings.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"AppDelegate+APPRegisterUserNotificationSettings.m"
;
path
=
"de.appplant.cordova.common.registerusernotificationsettings/AppDelegate+APPRegisterUserNotificationSettings.m"
;
sourceTree
=
"<group>"
;
};
D702377109864DACBB7B7576
/* UILocalNotification+APPLocalNotification.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"UILocalNotification+APPLocalNotification.h"
;
path
=
"de.appplant.cordova.plugin.local-notification/UILocalNotification+APPLocalNotification.h"
;
sourceTree
=
"<group>"
;
};
DA04C6D1451C4D9BA01968ED
/* Toast.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
Toast.h
;
path
=
"nl.x-services.plugins.toast/Toast.h"
;
sourceTree
=
"<group>"
;
};
EB87FDF31871DA8E0020F90C
/* www */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
folder
;
name
=
www
;
path
=
../../www
;
sourceTree
=
"<group>"
;
};
EB87FDF41871DAF40020F90C
/* config.xml */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.xml
;
name
=
config.xml
;
path
=
../../config.xml
;
sourceTree
=
"<group>"
;
};
F840E1F0165FE0F500CFE078
/* config.xml */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.xml
;
name
=
config.xml
;
path
=
NotificationExample/config.xml
;
sourceTree
=
"<group>"
;
};
F84A063F3D7643B199254183
/* CDVDevice.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
CDVDevice.h
;
path
=
"cordova-plugin-device/CDVDevice.h"
;
sourceTree
=
"<group>"
;
};
FA53F16C55784362BAB47C99
/* APPLocalNotification.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
APPLocalNotification.h
;
path
=
"de.appplant.cordova.plugin.local-notification/APPLocalNotification.h"
;
sourceTree
=
"<group>"
;
};
3F8F08CF872443B99B4C7F0C
/* CDVDevice.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"CDVDevice.m"
;
path
=
"cordova-plugin-device/CDVDevice.m"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
E4AB18AB2B9447FAAB56CFFA
/* CDVDevice.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"CDVDevice.h"
;
path
=
"cordova-plugin-device/CDVDevice.h"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
E4AC231569274FDC9A337CE1
/* APPLocalNotification.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"APPLocalNotification.m"
;
path
=
"de.appplant.cordova.plugin.local-notification/APPLocalNotification.m"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
0F35C3B0341549BCB67F40AF
/* APPLocalNotificationOptions.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"APPLocalNotificationOptions.m"
;
path
=
"de.appplant.cordova.plugin.local-notification/APPLocalNotificationOptions.m"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
6A54961A48724D74972157C8
/* UIApplication+APPLocalNotification.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"UIApplication+APPLocalNotification.m"
;
path
=
"de.appplant.cordova.plugin.local-notification/UIApplication+APPLocalNotification.m"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
DD2C696409F449568F10BD80
/* UILocalNotification+APPLocalNotification.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
"UILocalNotification+APPLocalNotification.m"
;
path
=
"de.appplant.cordova.plugin.local-notification/UILocalNotification+APPLocalNotification.m"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
657DD45362F04979AF1782CE
/* APPLocalNotification.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"APPLocalNotification.h"
;
path
=
"de.appplant.cordova.plugin.local-notification/APPLocalNotification.h"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
20047DC97F7A4DBEB4608A12
/* APPLocalNotificationOptions.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"APPLocalNotificationOptions.h"
;
path
=
"de.appplant.cordova.plugin.local-notification/APPLocalNotificationOptions.h"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
90749E99DCA6429D9C535ED1
/* UIApplication+APPLocalNotification.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"UIApplication+APPLocalNotification.h"
;
path
=
"de.appplant.cordova.plugin.local-notification/UIApplication+APPLocalNotification.h"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
BF3E0B730811413DB3F91222
/* UILocalNotification+APPLocalNotification.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
"UILocalNotification+APPLocalNotification.h"
;
path
=
"de.appplant.cordova.plugin.local-notification/UILocalNotification+APPLocalNotification.h"
;
sourceTree
=
"<group>"
;
fileEncoding
=
4
;
};
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
...
...
@@ -139,7 +138,7 @@
301BF552109A68D80062928A
/* libCordova.a in Frameworks */
,
288765FD0DF74451002DB57D
/* CoreGraphics.framework in Frameworks */
,
305D5FD1115AB8F900A74A75
/* MobileCoreServices.framework in Frameworks */
,
C
C26E958D783460CB096D087
/* QuartzCore.framework in Frameworks */
,
C
34903A0A98845C5B3980421
/* QuartzCore.framework in Frameworks */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
...
...
@@ -211,7 +210,7 @@
5B1594DC16A7569C00FEF299
/* AssetsLibrary.framework */
,
288765FC0DF74451002DB57D
/* CoreGraphics.framework */
,
305D5FD0115AB8F900A74A75
/* MobileCoreServices.framework */
,
97129848CDCC42118CF1C40D
/* QuartzCore.framework */
,
AA0BA11967D24FFF9A8729E3
/* QuartzCore.framework */
,
);
name
=
Frameworks
;
sourceTree
=
"<group>"
;
...
...
@@ -227,22 +226,22 @@
307C750510C5A3420062BCA9
/* Plugins */
=
{
isa
=
PBXGroup
;
children
=
(
D5869E30F00647C1A2399FAC
/* AppDelegate+APPRegisterUserNotificationSettings.m */
,
57141DABDB564FD5ADE8284
8
/* AppDelegate+APPRegisterUserNotificationSettings.h */
,
1DE50EBD09D2455DBC5D351E
/* Toast+UIView.m */
,
358531870FE9418D801CA17D
/* Toast.m */
,
751EA302B0C545C1ABD2CFB7
/* Toast+UIView.h */
,
DA04C6D1451C4D9BA01968ED
/* Toast.h */
,
9D377024246144729DE8F96F
/* CDVDevice.m */
,
F84A063F3D7643B199254183
/* CDVDevice.h */
,
754762A7EDBD428EAA6B1370
/* APPLocalNotification.m */
,
3D318D53B4C1444BAAA6DAF1
/* APPLocalNotificationOptions.m */
,
2F66F04C3AA942779C1C4F95
/* UIApplication+APPLocalNotification.m */
,
0EABFA908C98474CA4F6C65A
/* UILocalNotification+APPLocalNotification.m */
,
FA53F16C55784362BAB47C99
/* APPLocalNotification.h */
,
65E6CB261F3B4A1D990CDFD0
/* APPLocalNotificationOptions.h */
,
78A8B88BC41248BBADACCABB
/* UIApplication+APPLocalNotification.h */
,
D702377109864DACBB7B7576
/* UILocalNotification+APPLocalNotification.h */
,
52D79A2853814BD1A3A10B7D
/* AppDelegate+APPRegisterUserNotificationSettings.m */
,
78F93C2A583F42ACAE4095E
8
/* AppDelegate+APPRegisterUserNotificationSettings.h */
,
C3A9F0FD8971443ABE2CD997
/* Toast+UIView.m */
,
29DB052EC20A4E42A76FEEDA
/* Toast.m */
,
53BC65B8679643FD87A02C6E
/* Toast+UIView.h */
,
B511C166ACE7434AA298EEE0
/* Toast.h */
,
3F8F08CF872443B99B4C7F0C
/* CDVDevice.m */
,
E4AB18AB2B9447FAAB56CFFA
/* CDVDevice.h */
,
E4AC231569274FDC9A337CE1
/* APPLocalNotification.m */
,
0F35C3B0341549BCB67F40AF
/* APPLocalNotificationOptions.m */
,
6A54961A48724D74972157C8
/* UIApplication+APPLocalNotification.m */
,
DD2C696409F449568F10BD80
/* UILocalNotification+APPLocalNotification.m */
,
657DD45362F04979AF1782CE
/* APPLocalNotification.h */
,
20047DC97F7A4DBEB4608A12
/* APPLocalNotificationOptions.h */
,
90749E99DCA6429D9C535ED1
/* UIApplication+APPLocalNotification.h */
,
BF3E0B730811413DB3F91222
/* UILocalNotification+APPLocalNotification.h */
,
);
name
=
Plugins
;
path
=
NotificationExample/Plugins
;
...
...
@@ -324,7 +323,7 @@
29B97313FDCFA39411CA2CEA
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
51
0
;
LastUpgradeCheck
=
70
0
;
};
buildConfigurationList
=
C01FCF4E08A954540054247B
/* Build configuration list for PBXProject "NotificationExample" */
;
compatibilityVersion
=
"Xcode 3.2"
;
...
...
@@ -427,14 +426,14 @@
1D60589B0D05DD56006BFB54
/* main.m in Sources */
,
1D3623260D0F684500981E51
/* AppDelegate.m in Sources */
,
302D95F114D2391D003F00A1
/* MainViewController.m in Sources */
,
1C584EB51F3C426D8A25DAAF
/* AppDelegate+APPRegisterUserNotificationSettings.m in Sources */
,
0ECEF97594F04776B7BE0C66
/* Toast+UIView.m in Sources */
,
9149ECD9BBCA4D8E9134ABC1
/* Toast.m in Sources */
,
E2C8C56228EF4650921A8C13
/* CDVDevice.m in Sources */
,
AD36A476BF534005AC4468ED
/* APPLocalNotification.m in Sources */
,
EFFF31CCFEC944568CED9AF2
/* APPLocalNotificationOptions.m in Sources */
,
AF44493D8C1E426D98DF16EF
/* UIApplication+APPLocalNotification.m in Sources */
,
2
97157BA33654D9294C2E907
/* UILocalNotification+APPLocalNotification.m in Sources */
,
B71D8D446BDD468D91312FC4
/* AppDelegate+APPRegisterUserNotificationSettings.m in Sources */
,
6A8F96ADE761487C81E6E457
/* Toast+UIView.m in Sources */
,
BFDE0D6A4AE64EBB98F82923
/* Toast.m in Sources */
,
D4A8F9ED5C744DF9AE0F017C
/* CDVDevice.m in Sources */
,
B27FD1146F2346B8A25D8B58
/* APPLocalNotification.m in Sources */
,
F5781270C72C46AEB4DE2F9A
/* APPLocalNotificationOptions.m in Sources */
,
821357C60CE6476988324E2A
/* UIApplication+APPLocalNotification.m in Sources */
,
2
4888EC32C55469EA588670F
/* UILocalNotification+APPLocalNotification.m in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
...
...
@@ -475,6 +474,7 @@
"-weak-lSystem"
,
"-ObjC"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
de.appplant.localnotification.example
;
PRODUCT_NAME
=
NotificationExample
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
};
...
...
@@ -504,6 +504,7 @@
"-weak-lSystem"
,
"-ObjC"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
de.appplant.localnotification.example
;
PRODUCT_NAME
=
NotificationExample
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
};
...
...
@@ -520,6 +521,7 @@
CLANG_WARN_INT_CONVERSION
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
ENABLE_TESTABILITY
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
c99
;
GCC_THUMB_SUPPORT
=
NO
;
GCC_VERSION
=
""
;
...
...
platforms/ios/NotificationExample.xcodeproj/project.xcworkspace/xcshareddata/NotificationExample.xccheckout
deleted
100644 → 0
View file @
a02e1b72
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
IDESourceControlProjectFavoriteDictionaryKey
</key>
<false/>
<key>
IDESourceControlProjectIdentifier
</key>
<string>
0B4D9F20-F7BE-4517-A3A6-1D92D25D9238
</string>
<key>
IDESourceControlProjectName
</key>
<string>
NotificationExample
</string>
<key>
IDESourceControlProjectOriginsDictionary
</key>
<dict>
<key>
E6A4395732CC1C6C7441E85472223F9AAF3A67CD
</key>
<string>
github.com:katzer/cordova-plugin-local-notifications.git
</string>
</dict>
<key>
IDESourceControlProjectPath
</key>
<string>
platforms/ios/NotificationExample.xcodeproj
</string>
<key>
IDESourceControlProjectRelativeInstallPathDictionary
</key>
<dict>
<key>
E6A4395732CC1C6C7441E85472223F9AAF3A67CD
</key>
<string>
../../../..
</string>
</dict>
<key>
IDESourceControlProjectURL
</key>
<string>
github.com:katzer/cordova-plugin-local-notifications.git
</string>
<key>
IDESourceControlProjectVersion
</key>
<integer>
111
</integer>
<key>
IDESourceControlProjectWCCIdentifier
</key>
<string>
E6A4395732CC1C6C7441E85472223F9AAF3A67CD
</string>
<key>
IDESourceControlProjectWCConfigurations
</key>
<array>
<dict>
<key>
IDESourceControlRepositoryExtensionIdentifierKey
</key>
<string>
public.vcs.git
</string>
<key>
IDESourceControlWCCIdentifierKey
</key>
<string>
E6A4395732CC1C6C7441E85472223F9AAF3A67CD
</string>
<key>
IDESourceControlWCCName
</key>
<string>
cordova-example-local-notifications
</string>
</dict>
</array>
</dict>
</plist>
platforms/ios/NotificationExample.xcodeproj/project.xcworkspace/xcuserdata/sebastian.xcuserdatad/UserInterfaceState.xcuserstate
View file @
41b51ab6
No preview for this file type
platforms/ios/NotificationExample.xcodeproj/xcuserdata/sebastian.xcuserdatad/xcschemes/NotificationExample.xcscheme
View file @
41b51ab6
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
64
0"
LastUpgradeVersion =
"0
70
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -23,10 +23,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
buildConfiguration =
"Debug"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
</Testables>
<MacroExpansion>
...
...
@@ -38,15 +38,18 @@
ReferencedContainer =
"container:NotificationExample.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Debug"
ignoresPersistentStateOnLaunch =
"NO"
debugDocumentVersioning =
"YES"
debugServiceExtension =
"internal"
allowLocationSimulation =
"YES"
>
<BuildableProductRunnable
runnableDebuggingMode =
"0"
>
...
...
@@ -62,10 +65,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration =
"Release"
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
debugDocumentVersioning =
"YES"
>
<BuildableProductRunnable
runnableDebuggingMode =
"0"
>
...
...
platforms/ios/NotificationExample/NotificationExample-Info.plist
View file @
41b51ab6
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleDisplayName
<
/k
e
y
>
<
string
>
$
{
PRODUCT_NAME
}<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
{
EXECUTABLE_NAME
}<
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
icon.png
<
/string
>
<
k
e
y
>
CFBundleIcons
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundlePrimaryIcon
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleIconFiles
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
icon-40
<
/string
>
<
string
>
icon-small
<
/string
>
<
string
>
icon-60
<
/string
>
<
string
>
icon.png
<
/string
>
<
string
>
icon
@
2x
<
/string
>
<
string
>
icon-72
<
/string
>
<
string
>
icon-72
@
2x
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UIPrerenderedIcon
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
CFBundleIcons
~
ipad
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundlePrimaryIcon
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleIconFiles
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
icon-small
<
/string
>
<
string
>
icon-40
<
/string
>
<
string
>
icon-50
<
/string
>
<
string
>
icon-76
<
/string
>
<
string
>
icon-60
<
/string
>
<
string
>
icon
<
/string
>
<
string
>
icon
@
2x
<
/string
>
<
string
>
icon-72
<
/string
>
<
string
>
icon-72
@
2x
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UIPrerenderedIcon
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
de.appplant.localnotification.example
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
$
{
PRODUCT_NAME
}<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
0.0.1
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
0.0.1
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSMainNibFile
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSMainNibFile
~
ipad
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
UILaunchImages
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
320
,
480
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
320
,
480
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-568h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
320
,
568
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-568h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
320
,
568
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-667h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
375
,
667
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-667h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
375
,
667
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-736h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
414
,
736
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-Landscape-736h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
414
,
736
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-Portrait
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
768
,
1024
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-Landscape
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
768
,
1024
}<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
\ No newline at end of file
<
d
i
c
t
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleDisplayName
<
/k
e
y
>
<
string
>
$
{
PRODUCT_NAME
}<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
{
EXECUTABLE_NAME
}<
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
icon.png
<
/string
>
<
k
e
y
>
CFBundleIcons
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundlePrimaryIcon
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleIconFiles
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
icon-40
<
/string
>
<
string
>
icon-small
<
/string
>
<
string
>
icon-60
<
/string
>
<
string
>
icon.png
<
/string
>
<
string
>
icon
@
2x
<
/string
>
<
string
>
icon-72
<
/string
>
<
string
>
icon-72
@
2x
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UIPrerenderedIcon
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
CFBundleIcons
~
ipad
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundlePrimaryIcon
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleIconFiles
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
icon-small
<
/string
>
<
string
>
icon-40
<
/string
>
<
string
>
icon-50
<
/string
>
<
string
>
icon-76
<
/string
>
<
string
>
icon-60
<
/string
>
<
string
>
icon
<
/string
>
<
string
>
icon
@
2x
<
/string
>
<
string
>
icon-72
<
/string
>
<
string
>
icon-72
@
2x
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
UIPrerenderedIcon
<
/k
e
y
>
<
fa
ls
e
/
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
$
(
PRODUCT_BUNDLE_IDENTIFIER
)<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
$
{
PRODUCT_NAME
}<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
0.0.1
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
0.0.1
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSMainNibFile
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSMainNibFile
~
ipad
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
UILaunchImages
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
320
,
480
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
320
,
480
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-568h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
320
,
568
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-568h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
320
,
568
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-667h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
375
,
667
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-667h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
375
,
667
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-736h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
414
,
736
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-Landscape-736h
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
414
,
736
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-Portrait
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Portrait
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
768
,
1024
}<
/string
>
<
/
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
UILaunchImageMinimumOSVersion
<
/k
e
y
>
<
string
>
8.0
<
/string
>
<
k
e
y
>
UILaunchImageName
<
/k
e
y
>
<
string
>
Default-Landscape
<
/string
>
<
k
e
y
>
UILaunchImageOrientation
<
/k
e
y
>
<
string
>
Landscape
<
/string
>
<
k
e
y
>
UILaunchImageSize
<
/k
e
y
>
<
string
>{
768
,
1024
}<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
platforms/ios/NotificationExample/Plugins/de.appplant.cordova.plugin.local-notification/APPLocalNotificationOptions.m
View file @
41b51ab6
...
...
@@ -46,7 +46,7 @@ NSString* const DEFAULT_SOUND = @"res://platform_default";
*/
-
(
id
)
initWithDict
:(
NSDictionary
*
)
dictionary
{
self
=
[
s
uper
init
];
self
=
[
s
elf
init
];
self
.
dict
=
dictionary
;
...
...
platforms/ios/NotificationExample/Plugins/de.appplant.cordova.plugin.local-notification/UILocalNotification+APPLocalNotification.m
View file @
41b51ab6
...
...
@@ -41,7 +41,7 @@ NSInteger const APPLocalNotificationTypeTriggered = 2;
*/
-
(
id
)
initWithOptions
:(
NSDictionary
*
)
dict
{
self
=
[
s
uper
init
];
self
=
[
s
elf
init
];
[
self
setUserInfo
:
dict
];
[
self
__init
];
...
...
platforms/ios/www/cordova-js-src/exec.js
deleted
100644 → 0
View file @
a02e1b72
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* Creates a gap bridge iframe used to notify the native code about queued
* commands.
*/
var
cordova
=
require
(
'cordova'
),
channel
=
require
(
'cordova/channel'
),
utils
=
require
(
'cordova/utils'
),
base64
=
require
(
'cordova/base64'
),
// XHR mode does not work on iOS 4.2.
// XHR mode's main advantage is working around a bug in -webkit-scroll, which
// doesn't exist only on iOS 5.x devices.
// IFRAME_NAV is the fastest.
// IFRAME_HASH could be made to enable synchronous bridge calls if we wanted this feature.
jsToNativeModes
=
{
IFRAME_NAV
:
0
,
// Default. Uses a new iframe for each poke.
// XHR bridge appears to be flaky sometimes: CB-3900, CB-3359, CB-5457, CB-4970, CB-4998, CB-5134
XHR_NO_PAYLOAD
:
1
,
// About the same speed as IFRAME_NAV. Performance not about the same as IFRAME_NAV, but more variable.
XHR_WITH_PAYLOAD
:
2
,
// Flakey, and not as performant
XHR_OPTIONAL_PAYLOAD
:
3
,
// Flakey, and not as performant
IFRAME_HASH_NO_PAYLOAD
:
4
,
// Not fully baked. A bit faster than IFRAME_NAV, but risks jank since poke happens synchronously.
IFRAME_HASH_WITH_PAYLOAD
:
5
,
// Slower than no payload. Maybe since it has to be URI encoded / decoded.
WK_WEBVIEW_BINDING
:
6
// Only way that works for WKWebView :)
},
bridgeMode
,
execIframe
,
execHashIframe
,
hashToggle
=
1
,
execXhr
,
requestCount
=
0
,
vcHeaderValue
=
null
,
commandQueue
=
[],
// Contains pending JS->Native messages.
isInContextOfEvalJs
=
0
,
failSafeTimerId
=
0
;
function
shouldBundleCommandJson
()
{
if
(
bridgeMode
===
jsToNativeModes
.
XHR_WITH_PAYLOAD
)
{
return
true
;
}
if
(
bridgeMode
===
jsToNativeModes
.
XHR_OPTIONAL_PAYLOAD
)
{
var
payloadLength
=
0
;
for
(
var
i
=
0
;
i
<
commandQueue
.
length
;
++
i
)
{
payloadLength
+=
commandQueue
[
i
].
length
;
}
// The value here was determined using the benchmark within CordovaLibApp on an iPad 3.
return
payloadLength
<
4500
;
}
return
false
;
}
function
massageArgsJsToNative
(
args
)
{
if
(
!
args
||
utils
.
typeName
(
args
)
!=
'Array'
)
{
return
args
;
}
var
ret
=
[];
args
.
forEach
(
function
(
arg
,
i
)
{
if
(
utils
.
typeName
(
arg
)
==
'ArrayBuffer'
)
{
ret
.
push
({
'CDVType'
:
'ArrayBuffer'
,
'data'
:
base64
.
fromArrayBuffer
(
arg
)
});
}
else
{
ret
.
push
(
arg
);
}
});
return
ret
;
}
function
massageMessageNativeToJs
(
message
)
{
if
(
message
.
CDVType
==
'ArrayBuffer'
)
{
var
stringToArrayBuffer
=
function
(
str
)
{
var
ret
=
new
Uint8Array
(
str
.
length
);
for
(
var
i
=
0
;
i
<
str
.
length
;
i
++
)
{
ret
[
i
]
=
str
.
charCodeAt
(
i
);
}
return
ret
.
buffer
;
};
var
base64ToArrayBuffer
=
function
(
b64
)
{
return
stringToArrayBuffer
(
atob
(
b64
));
};
message
=
base64ToArrayBuffer
(
message
.
data
);
}
return
message
;
}
function
convertMessageToArgsNativeToJs
(
message
)
{
var
args
=
[];
if
(
!
message
||
!
message
.
hasOwnProperty
(
'CDVType'
))
{
args
.
push
(
message
);
}
else
if
(
message
.
CDVType
==
'MultiPart'
)
{
message
.
messages
.
forEach
(
function
(
e
)
{
args
.
push
(
massageMessageNativeToJs
(
e
));
});
}
else
{
args
.
push
(
massageMessageNativeToJs
(
message
));
}
return
args
;
}
function
iOSExec
()
{
if
(
bridgeMode
===
undefined
)
{
bridgeMode
=
jsToNativeModes
.
IFRAME_NAV
;
}
if
(
window
.
webkit
&&
window
.
webkit
.
messageHandlers
&&
window
.
webkit
.
messageHandlers
.
cordova
&&
window
.
webkit
.
messageHandlers
.
cordova
.
postMessage
)
{
bridgeMode
=
jsToNativeModes
.
WK_WEBVIEW_BINDING
;
}
var
successCallback
,
failCallback
,
service
,
action
,
actionArgs
,
splitCommand
;
var
callbackId
=
null
;
if
(
typeof
arguments
[
0
]
!==
"string"
)
{
// FORMAT ONE
successCallback
=
arguments
[
0
];
failCallback
=
arguments
[
1
];
service
=
arguments
[
2
];
action
=
arguments
[
3
];
actionArgs
=
arguments
[
4
];
// Since we need to maintain backwards compatibility, we have to pass
// an invalid callbackId even if no callback was provided since plugins
// will be expecting it. The Cordova.exec() implementation allocates
// an invalid callbackId and passes it even if no callbacks were given.
callbackId
=
'INVALID'
;
}
else
{
// FORMAT TWO, REMOVED
try
{
splitCommand
=
arguments
[
0
].
split
(
"."
);
action
=
splitCommand
.
pop
();
service
=
splitCommand
.
join
(
"."
);
actionArgs
=
Array
.
prototype
.
splice
.
call
(
arguments
,
1
);
console
.
log
(
'The old format of this exec call has been removed (deprecated since 2.1). Change to: '
+
"cordova.exec(null, null,
\"
"
+
service
+
"
\"
,
\"
"
+
action
+
"
\"
,"
+
JSON
.
stringify
(
actionArgs
)
+
");"
);
return
;
}
catch
(
e
)
{}
}
// If actionArgs is not provided, default to an empty array
actionArgs
=
actionArgs
||
[];
// Register the callbacks and add the callbackId to the positional
// arguments if given.
if
(
successCallback
||
failCallback
)
{
callbackId
=
service
+
cordova
.
callbackId
++
;
cordova
.
callbacks
[
callbackId
]
=
{
success
:
successCallback
,
fail
:
failCallback
};
}
actionArgs
=
massageArgsJsToNative
(
actionArgs
);
var
command
=
[
callbackId
,
service
,
action
,
actionArgs
];
// Stringify and queue the command. We stringify to command now to
// effectively clone the command arguments in case they are mutated before
// the command is executed.
commandQueue
.
push
(
JSON
.
stringify
(
command
));
if
(
bridgeMode
===
jsToNativeModes
.
WK_WEBVIEW_BINDING
)
{
window
.
webkit
.
messageHandlers
.
cordova
.
postMessage
(
command
);
}
else
{
// If we're in the context of a stringByEvaluatingJavaScriptFromString call,
// then the queue will be flushed when it returns; no need for a poke.
// Also, if there is already a command in the queue, then we've already
// poked the native side, so there is no reason to do so again.
if
(
!
isInContextOfEvalJs
&&
commandQueue
.
length
==
1
)
{
pokeNative
();
}
}
}
function
pokeNative
()
{
switch
(
bridgeMode
)
{
case
jsToNativeModes
.
XHR_NO_PAYLOAD
:
case
jsToNativeModes
.
XHR_WITH_PAYLOAD
:
case
jsToNativeModes
.
XHR_OPTIONAL_PAYLOAD
:
pokeNativeViaXhr
();
break
;
default
:
// iframe-based.
pokeNativeViaIframe
();
}
}
function
pokeNativeViaXhr
()
{
// This prevents sending an XHR when there is already one being sent.
// This should happen only in rare circumstances (refer to unit tests).
if
(
execXhr
&&
execXhr
.
readyState
!=
4
)
{
execXhr
=
null
;
}
// Re-using the XHR improves exec() performance by about 10%.
execXhr
=
execXhr
||
new
XMLHttpRequest
();
// Changing this to a GET will make the XHR reach the URIProtocol on 4.2.
// For some reason it still doesn't work though...
// Add a timestamp to the query param to prevent caching.
execXhr
.
open
(
'HEAD'
,
"/!gap_exec?"
+
(
+
new
Date
()),
true
);
if
(
!
vcHeaderValue
)
{
vcHeaderValue
=
/.*
\((
.*
)\)
$/
.
exec
(
navigator
.
userAgent
)[
1
];
}
execXhr
.
setRequestHeader
(
'vc'
,
vcHeaderValue
);
execXhr
.
setRequestHeader
(
'rc'
,
++
requestCount
);
if
(
shouldBundleCommandJson
())
{
execXhr
.
setRequestHeader
(
'cmds'
,
iOSExec
.
nativeFetchMessages
());
}
execXhr
.
send
(
null
);
}
function
pokeNativeViaIframe
()
{
// CB-5488 - Don't attempt to create iframe before document.body is available.
if
(
!
document
.
body
)
{
setTimeout
(
pokeNativeViaIframe
);
return
;
}
if
(
bridgeMode
===
jsToNativeModes
.
IFRAME_HASH_NO_PAYLOAD
||
bridgeMode
===
jsToNativeModes
.
IFRAME_HASH_WITH_PAYLOAD
)
{
// TODO: This bridge mode doesn't properly support being removed from the DOM (CB-7735)
if
(
!
execHashIframe
)
{
execHashIframe
=
document
.
createElement
(
'iframe'
);
execHashIframe
.
style
.
display
=
'none'
;
document
.
body
.
appendChild
(
execHashIframe
);
// Hash changes don't work on about:blank, so switch it to file:///.
execHashIframe
.
contentWindow
.
history
.
replaceState
(
null
,
null
,
'file:///#'
);
}
// The delegate method is called only when the hash changes, so toggle it back and forth.
hashToggle
=
hashToggle
^
3
;
var
hashValue
=
'%0'
+
hashToggle
;
if
(
bridgeMode
===
jsToNativeModes
.
IFRAME_HASH_WITH_PAYLOAD
)
{
hashValue
+=
iOSExec
.
nativeFetchMessages
();
}
execHashIframe
.
contentWindow
.
location
.
hash
=
hashValue
;
}
else
{
// Check if they've removed it from the DOM, and put it back if so.
if
(
execIframe
&&
execIframe
.
contentWindow
)
{
execIframe
.
contentWindow
.
location
=
'gap://ready'
;
}
else
{
execIframe
=
document
.
createElement
(
'iframe'
);
execIframe
.
style
.
display
=
'none'
;
execIframe
.
src
=
'gap://ready'
;
document
.
body
.
appendChild
(
execIframe
);
}
// Use a timer to protect against iframe being unloaded during the poke (CB-7735).
// This makes the bridge ~ 7% slower, but works around the poke getting lost
// when the iframe is removed from the DOM.
// An onunload listener could be used in the case where the iframe has just been
// created, but since unload events fire only once, it doesn't work in the normal
// case of iframe reuse (where unload will have already fired due to the attempted
// navigation of the page).
failSafeTimerId
=
setTimeout
(
function
()
{
if
(
commandQueue
.
length
)
{
pokeNative
();
}
},
50
);
// Making this > 0 improves performance (marginally) in the normal case (where it doesn't fire).
}
}
iOSExec
.
jsToNativeModes
=
jsToNativeModes
;
iOSExec
.
setJsToNativeBridgeMode
=
function
(
mode
)
{
// Remove the iFrame since it may be no longer required, and its existence
// can trigger browser bugs.
// https://issues.apache.org/jira/browse/CB-593
if
(
execIframe
)
{
if
(
execIframe
.
parentNode
)
{
execIframe
.
parentNode
.
removeChild
(
execIframe
);
}
execIframe
=
null
;
}
bridgeMode
=
mode
;
};
iOSExec
.
nativeFetchMessages
=
function
()
{
// Stop listing for window detatch once native side confirms poke.
if
(
failSafeTimerId
)
{
clearTimeout
(
failSafeTimerId
);
failSafeTimerId
=
0
;
}
// Each entry in commandQueue is a JSON string already.
if
(
!
commandQueue
.
length
)
{
return
''
;
}
var
json
=
'['
+
commandQueue
.
join
(
','
)
+
']'
;
commandQueue
.
length
=
0
;
return
json
;
};
iOSExec
.
nativeCallback
=
function
(
callbackId
,
status
,
message
,
keepCallback
)
{
return
iOSExec
.
nativeEvalAndFetch
(
function
()
{
var
success
=
status
===
0
||
status
===
1
;
var
args
=
convertMessageToArgsNativeToJs
(
message
);
cordova
.
callbackFromNative
(
callbackId
,
success
,
status
,
args
,
keepCallback
);
});
};
iOSExec
.
nativeEvalAndFetch
=
function
(
func
)
{
// This shouldn't be nested, but better to be safe.
isInContextOfEvalJs
++
;
try
{
func
();
return
iOSExec
.
nativeFetchMessages
();
}
finally
{
isInContextOfEvalJs
--
;
}
};
module
.
exports
=
iOSExec
;
platforms/ios/www/cordova-js-src/platform.js
deleted
100644 → 0
View file @
a02e1b72
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
module
.
exports
=
{
id
:
'ios'
,
bootstrap
:
function
()
{
require
(
'cordova/channel'
).
onNativeReady
.
fire
();
}
};
plugins/de.appplant.cordova.plugin.local-notification/plugin.xml
View file @
41b51ab6
...
...
@@ -79,7 +79,7 @@
<!-- android -->
<platform
name=
"android"
>
<
dependency
id=
"android.support.v4
"
/>
<
framework
src=
"com.android.support:support-v4:+
"
/>
<config-file
target=
"res/xml/config.xml"
parent=
"/*"
>
<feature
name=
"LocalNotification"
>
...
...
plugins/de.appplant.cordova.plugin.local-notification/src/ios/APPLocalNotificationOptions.m
View file @
41b51ab6
...
...
@@ -29,7 +29,7 @@ NSString* const DEFAULT_SOUND = @"res://platform_default";
@interface
APPLocalNotificationOptions
()
// The dictionary which contains all notification properties
@property
(
readwrite
,
assig
n
)
NSDictionary
*
dict
;
@property
(
nonatomic
,
retai
n
)
NSDictionary
*
dict
;
@end
...
...
@@ -46,7 +46,7 @@ NSString* const DEFAULT_SOUND = @"res://platform_default";
*/
-
(
id
)
initWithDict
:(
NSDictionary
*
)
dictionary
{
self
=
[
s
uper
init
];
self
=
[
s
elf
init
];
self
.
dict
=
dictionary
;
...
...
plugins/de.appplant.cordova.plugin.local-notification/src/ios/UILocalNotification+APPLocalNotification.m
View file @
41b51ab6
...
...
@@ -41,7 +41,7 @@ NSInteger const APPLocalNotificationTypeTriggered = 2;
*/
-
(
id
)
initWithOptions
:(
NSDictionary
*
)
dict
{
self
=
[
s
uper
init
];
self
=
[
s
elf
init
];
[
self
setUserInfo
:
dict
];
[
self
__init
];
...
...
plugins/fetch.json
View file @
41b51ab6
...
...
@@ -52,20 +52,28 @@
"is_top_level"
:
true
,
"variables"
:
{}
},
"
de.appplant.cordova.plugin.local-notification
"
:
{
"
cordova-plugin-device
"
:
{
"source"
:
{
"type"
:
"
local
"
,
"
path"
:
"/Users/sebastian/Documents/github/cordova-plugin-local-notifications
"
"type"
:
"
registry
"
,
"
id"
:
"cordova-plugin-device
"
},
"is_top_level"
:
tru
e
,
"is_top_level"
:
fals
e
,
"variables"
:
{}
},
"cordova-plugin-
device
"
:
{
"cordova-plugin-
android-support-v4
"
:
{
"source"
:
{
"type"
:
"registry"
,
"id"
:
"cordova-plugin-
device
"
"id"
:
"cordova-plugin-
android-support-v4
"
},
"is_top_level"
:
false
,
"variables"
:
{}
},
"de.appplant.cordova.plugin.local-notification"
:
{
"source"
:
{
"type"
:
"local"
,
"path"
:
"/Users/sebastian/Documents/github/cordova-plugin-local-notifications"
},
"is_top_level"
:
true
,
"variables"
:
{}
}
}
\ No newline at end of file
plugins/ios.json
View file @
41b51ab6
...
...
@@ -5,6 +5,16 @@
},
"config_munge"
:
{
"files"
:
{
"framework"
:
{
"parents"
:
{
"QuartzCore.framework"
:
[
{
"xml"
:
false
,
"count"
:
1
}
]
}
},
"config.xml"
:
{
"parents"
:
{
"/*"
:
[
...
...
@@ -22,16 +32,6 @@
}
]
}
},
"framework"
:
{
"parents"
:
{
"QuartzCore.framework"
:
[
{
"xml"
:
false
,
"count"
:
1
}
]
}
}
}
},
...
...
@@ -46,12 +46,12 @@
"PACKAGE_NAME"
:
"de.appplant.localnotification.example"
},
"de.appplant.cordova.plugin.local-notification"
:
{
"PACKAGE_NAME"
:
"
de.appplant.localnotification.example
"
"PACKAGE_NAME"
:
"
$(PRODUCT_BUNDLE_IDENTIFIER)
"
}
},
"dependent_plugins"
:
{
"cordova-plugin-device"
:
{
"PACKAGE_NAME"
:
"
de.appplant.localnotification.example
"
"PACKAGE_NAME"
:
"
$(PRODUCT_BUNDLE_IDENTIFIER)
"
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment