Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jpush-api-python-client
Project
Project
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
钟尚武
jpush-api-python-client
Commits
99857174
Commit
99857174
authored
Jan 03, 2017
by
Helperhaps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default badge
parent
b1878598
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
example_notification.py
examples/push_examples/example_notification.py
+1
-1
__init__.py
jpush/push/__init__.py
+1
-1
payload.py
jpush/push/payload.py
+1
-1
No files found.
examples/push_examples/example_notification.py
View file @
99857174
...
@@ -9,7 +9,7 @@ push = _jpush.create_push()
...
@@ -9,7 +9,7 @@ push = _jpush.create_push()
push
.
audience
=
jpush
.
all_
push
.
audience
=
jpush
.
all_
push
.
platform
=
jpush
.
all_
push
.
platform
=
jpush
.
all_
ios
=
jpush
.
ios
(
alert
=
"Hello, IOS JPush!"
,
badge
=
"+1"
,
sound
=
"a.caf"
,
extras
=
{
'k1'
:
'v1'
})
ios
=
jpush
.
ios
(
alert
=
"Hello, IOS JPush!"
,
sound
=
"a.caf"
,
extras
=
{
'k1'
:
'v1'
})
android
=
jpush
.
android
(
alert
=
"Hello, Android msg"
,
priority
=
1
,
style
=
1
,
big_text
=
'jjjjjjjjjj'
,
extras
=
{
'k1'
:
'v1'
})
android
=
jpush
.
android
(
alert
=
"Hello, Android msg"
,
priority
=
1
,
style
=
1
,
big_text
=
'jjjjjjjjjj'
,
extras
=
{
'k1'
:
'v1'
})
push
.
notification
=
jpush
.
notification
(
alert
=
"Hello, JPush!"
,
android
=
android
,
ios
=
ios
)
push
.
notification
=
jpush
.
notification
(
alert
=
"Hello, JPush!"
,
android
=
android
,
ios
=
ios
)
...
...
jpush/push/__init__.py
View file @
99857174
...
@@ -19,7 +19,7 @@ from .payload import (
...
@@ -19,7 +19,7 @@ from .payload import (
smsmessage
,
smsmessage
,
)
)
# Common selector for audience & platform
# Common selector for audience & platform
all_
=
"all"
all_
=
"all"
"""Select all, to do a broadcast.
"""Select all, to do a broadcast.
...
...
jpush/push/payload.py
View file @
99857174
...
@@ -36,7 +36,7 @@ def notification(alert=None, ios=None, android=None, winphone=None):
...
@@ -36,7 +36,7 @@ def notification(alert=None, ios=None, android=None, winphone=None):
return
payload
return
payload
def
ios
(
alert
=
None
,
badge
=
None
,
sound
=
None
,
content_available
=
False
,
def
ios
(
alert
=
None
,
badge
=
'+1'
,
sound
=
None
,
content_available
=
False
,
extras
=
None
,
sound_disable
=
False
):
extras
=
None
,
sound_disable
=
False
):
"""iOS/APNS specific platform override payload.
"""iOS/APNS specific platform override payload.
...
...
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