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
ccc2ad34
Commit
ccc2ad34
authored
Mar 20, 2015
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index.html
parent
112c3d93
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
41 deletions
+47
-41
index.html
platforms/android/assets/www/index.html
+0
-0
index.html
platforms/ios/www/index.html
+0
-0
CordovaApp.Phone.jsproj.user
platforms/windows/CordovaApp.Phone.jsproj.user
+4
-1
CordovaApp.Windows.jsproj.user
platforms/windows/CordovaApp.Windows.jsproj.user
+4
-1
CordovaApp.v12.suo
platforms/windows/CordovaApp.v12.suo
+0
-0
index.html
platforms/windows/www/index.html
+4
-4
index.html
www/index.html
+35
-35
No files found.
platforms/android/assets/www/index.html
View file @
ccc2ad34
This diff is collapsed.
Click to expand it.
platforms/ios/www/index.html
View file @
ccc2ad34
This diff is collapsed.
Click to expand it.
platforms/windows/CordovaApp.Phone.jsproj.user
View file @
ccc2ad34
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<PropertyGroup>
<ReferenceCachePath>C:\Users\sebastian\AppData\Local\Temp\yxmokjnx_CordovaApp.Phone_refcache</ReferenceCachePath>
</PropertyGroup>
</Project>
\ No newline at end of file
platforms/windows/CordovaApp.Windows.jsproj.user
View file @
ccc2ad34
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<PropertyGroup>
<ReferenceCachePath>C:\Users\sebastian\AppData\Local\Temp\anloqo42_CordovaApp.Windows_refcache</ReferenceCachePath>
</PropertyGroup>
</Project>
\ No newline at end of file
platforms/windows/CordovaApp.v12.suo
View file @
ccc2ad34
No preview for this file type
platforms/windows/www/index.html
View file @
ccc2ad34
...
...
@@ -20,7 +20,7 @@
under the License.
-->
<html>
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
name=
"msapplication-tap-highlight"
content=
"no"
/>
...
...
@@ -28,8 +28,8 @@
<meta
name=
"viewport"
content=
"user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/index.css"
/>
<title>
Notification Example
</title>
</head>
<body>
</head>
<body>
<div>
<div
class=
"app"
>
<h1>
Local-Notification Example
</h1>
...
...
@@ -410,5 +410,5 @@
<script
type=
"text/javascript"
>
app
.
initialize
();
</script>
</body>
</body>
</html>
www/index.html
View file @
ccc2ad34
...
...
@@ -42,86 +42,86 @@
<!-- permission -->
<h2
class=
"section"
style=
"padding-top:180px;"
>
Permission (iOS8)
</h2>
<div
class=
"container"
>
<div
onclick=
"hasPermission()"
>
Granted?
<br/><span>
hasPermission()
</span></div>
<div
onclick=
"registerPermission()"
>
Register
<br/><span>
registerPermission()
</span></div>
<div
onclick=
"hasPermission()"
>
Granted?
<br
/><span>
hasPermission()
</span></div>
<div
onclick=
"registerPermission()"
>
Register
<br
/><span>
registerPermission()
</span></div>
</div>
<!-- schedule -->
<h2
class=
"section"
>
Schedule
</h2>
<div
class=
"container"
>
<div
onclick=
"schedule()"
>
Single
<br/><span>
schedule(1)
</span></div>
<div
onclick=
"scheduleMultiple()"
>
Multiple
<br/><span>
schedule(1, 2, 3)
</span></div>
<div
onclick=
"schedule()"
>
Single
<br
/><span>
schedule(1)
</span></div>
<div
onclick=
"scheduleMultiple()"
>
Multiple
<br
/><span>
schedule(1, 2, 3)
</span></div>
</div>
<div
class=
"container"
>
<div
onclick=
"scheduleDelayed()"
>
In 5 sec
<br/><span>
schedule(1, firstAt:later)
</span></div>
<div
onclick=
"scheduleMinutely()"
>
Every min
<br/><span>
schedule(1, every:minute)
</span></div>
<div
onclick=
"scheduleDelayed()"
>
In 5 sec
<br
/><span>
schedule(1, firstAt:later)
</span></div>
<div
onclick=
"scheduleMinutely()"
>
Every min
<br
/><span>
schedule(1, every:minute)
</span></div>
</div>
<!-- update -->
<h2
class=
"section"
>
Update
</h2>
<div
class=
"container"
>
<div
onclick=
"update()"
>
Title
<br/><span>
update(1)
</span></div>
<div
onclick=
"updateInterval()"
>
Interval
<br/><span>
update(1, every:minute)
</span></div>
<div
onclick=
"update()"
>
Title
<br
/><span>
update(1)
</span></div>
<div
onclick=
"updateInterval()"
>
Interval
<br
/><span>
update(1, every:minute)
</span></div>
</div>
<!-- clear -->
<h2
class=
"section"
>
Clear
</h2>
<div
class=
"container"
>
<div
onclick=
"clearSingle()"
>
Single
<br/><span>
clear(1)
</span></div>
<div
onclick=
"clearMultiple()"
>
Multiple
<br/><span>
clear(2, 3)
</span></div>
<div
onclick=
"clearSingle()"
>
Single
<br
/><span>
clear(1)
</span></div>
<div
onclick=
"clearMultiple()"
>
Multiple
<br
/><span>
clear(2, 3)
</span></div>
</div>
<div
class=
"container"
>
<div
onclick=
"clearAll()"
>
All
<br/><span>
clearAll()
</span></div>
<div
onclick=
"clearAll()"
>
All
<br
/><span>
clearAll()
</span></div>
</div>
<!-- cancel -->
<h2
class=
"section"
>
Cancel
</h2>
<div
class=
"container"
>
<div
onclick=
"cancel()"
>
Single
<br/><span>
cancel(1)
</span></div>
<div
onclick=
"cancelMultiple()"
>
Multiple
<br/><span>
cancel(2, 3)
</span></div>
<div
onclick=
"cancel()"
>
Single
<br
/><span>
cancel(1)
</span></div>
<div
onclick=
"cancelMultiple()"
>
Multiple
<br
/><span>
cancel(2, 3)
</span></div>
</div>
<div
class=
"container"
>
<div
onclick=
"cancelAll()"
>
All
<br/><span>
cancelAll()
</span></div>
<div
onclick=
"cancelAll()"
>
All
<br
/><span>
cancelAll()
</span></div>
</div>
<!-- presence -->
<h2
class=
"section"
>
Presence
</h2>
<div
class=
"container"
>
<div
onclick=
"isScheduled()"
>
Scheduled?
<br/><span>
isScheduled(1)
</span></div>
<div
onclick=
"isTriggered()"
>
Triggered?
<br/><span>
isTrigered(1)
</span></div>
<div
onclick=
"isScheduled()"
>
Scheduled?
<br
/><span>
isScheduled(1)
</span></div>
<div
onclick=
"isTriggered()"
>
Triggered?
<br
/><span>
isTrigered(1)
</span></div>
</div>
<div
class=
"container"
>
<div
onclick=
"isPresent()"
>
Present?
<br/><span>
present(1)
</span></div>
<div
onclick=
"isPresent()"
>
Present?
<br
/><span>
present(1)
</span></div>
</div>
<!-- id's -->
<h2
class=
"section"
>
ID's
</h2>
<div
class=
"container"
>
<div
onclick=
"getScheduledIds()"
>
Scheduled
<br/><span>
getScheduledIds()
</span></div>
<div
onclick=
"getTriggeredIds()"
>
Triggered
<br/><span>
getTriggeredIds()
</span></div>
<div
onclick=
"getScheduledIds()"
>
Scheduled
<br
/><span>
getScheduledIds()
</span></div>
<div
onclick=
"getTriggeredIds()"
>
Triggered
<br
/><span>
getTriggeredIds()
</span></div>
</div>
<div
class=
"container"
>
<div
onclick=
"getIds()"
>
All
<br/><span>
getIds()
</span></div>
<div
onclick=
"getIds()"
>
All
<br
/><span>
getIds()
</span></div>
</div>
<!-- notifications -->
<h2
class=
"section"
>
Notifications
</h2>
<div
class=
"container"
>
<div
onclick=
"getScheduled()"
>
Scheduled
<br/><span>
getScheduled()
</span></div>
<div
onclick=
"getTriggered()"
>
Triggered
<br/><span>
getTrigered()
</span></div>
<div
onclick=
"getScheduled()"
>
Scheduled
<br
/><span>
getScheduled()
</span></div>
<div
onclick=
"getTriggered()"
>
Triggered
<br
/><span>
getTrigered()
</span></div>
</div>
<div
class=
"container"
>
<div
onclick=
"get()"
>
Single
<br/><span>
get(1)
</span></div>
<div
onclick=
"getMultiple()"
>
Multiple
<br/><span>
get(1, 2)
</span></div>
<div
onclick=
"get()"
>
Single
<br
/><span>
get(1)
</span></div>
<div
onclick=
"getMultiple()"
>
Multiple
<br
/><span>
get(1, 2)
</span></div>
</div>
<div
class=
"container"
>
<div
onclick=
"getAll()"
>
All
<br/><span>
getAll()
</span></div>
<div
onclick=
"getAll()"
>
All
<br
/><span>
getAll()
</span></div>
</div>
<!-- defaults -->
<h2
class=
"section"
>
Defaults
</h2>
<div
class=
"container"
>
<div
onclick=
"setDefaultTitle()"
>
Change title
<br/><span>
setDefaults(title:"...")
</span></div>
<div
onclick=
"setDefaultTitle()"
>
Change title
<br
/><span>
setDefaults(title:"...")
</span></div>
</div>
<!-- copyright -->
...
...
@@ -190,7 +190,7 @@
text
:
'Test Message 1'
,
icon
:
'http://www.optimizeordie.de/wp-content/plugins/social-media-widget/images/default/64/googleplus.png'
,
sound
:
null
,
data
:
{
test
:
id
}
data
:
{
test
:
id
}
});
};
...
...
@@ -198,10 +198,10 @@
cordova
.
plugins
.
notification
.
local
.
schedule
([{
id
:
1
,
text
:
'Multi Message 1'
},{
},
{
id
:
2
,
text
:
'Multi Message 2'
},{
},
{
id
:
3
,
text
:
'Multi Message 3'
}]);
...
...
@@ -209,7 +209,7 @@
scheduleDelayed
=
function
()
{
var
now
=
new
Date
().
getTime
(),
_5_sec_from_now
=
new
Date
(
now
+
5
*
1000
);
_5_sec_from_now
=
new
Date
(
now
+
5
*
1000
);
var
sound
=
device
.
platform
==
'Android'
?
'file://sound.mp3'
:
'file://beep.caf'
;
...
...
@@ -240,7 +240,7 @@
cordova
.
plugins
.
notification
.
local
.
update
({
id
:
1
,
text
:
'Updated Message 1'
,
json
:
{
updated
:
true
}
json
:
{
updated
:
true
}
});
};
...
...
@@ -256,11 +256,11 @@
<!-- clear -->
<script
type=
"text/javascript"
>
clearSingle
=
function
()
{
cordova
.
plugins
.
notification
.
local
.
clear
(
1
,
callback
);
cordova
.
plugins
.
notification
.
local
.
clear
(
1
,
callback
);
};
clearMultiple
=
function
()
{
cordova
.
plugins
.
notification
.
local
.
clear
([
2
,
3
],
callback
);
cordova
.
plugins
.
notification
.
local
.
clear
([
2
,
3
],
callback
);
};
clearAll
=
function
()
{
...
...
@@ -271,11 +271,11 @@
<!-- cancel -->
<script
type=
"text/javascript"
>
cancel
=
function
()
{
cordova
.
plugins
.
notification
.
local
.
cancel
(
1
,
callback
);
cordova
.
plugins
.
notification
.
local
.
cancel
(
1
,
callback
);
};
cancelMultiple
=
function
()
{
cordova
.
plugins
.
notification
.
local
.
cancel
([
2
,
3
],
callback
);
cordova
.
plugins
.
notification
.
local
.
cancel
([
2
,
3
],
callback
);
};
cancelAll
=
function
()
{
...
...
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