Difference between revisions of "NPNS services"

From Nintendo Switch Brew
Jump to navigation Jump to search
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
This is used for Push Notifications.
 +
 
= npns:u =
 
= npns:u =
 
This is "nn::npns::INpnsUser".
 
This is "nn::npns::INpnsUser".
Line 24: Line 26:
 
| 25 || QueryIsTokenValid
 
| 25 || QueryIsTokenValid
 
|-
 
|-
| 26 || [6.0.0+] ListenToMyApplicationId
+
| 26 || [5.0.0+] ListenToMyApplicationId
 
|-
 
|-
 
| 101 || Suspend
 
| 101 || Suspend
Line 32: Line 34:
 
| 103 || GetState
 
| 103 || GetState
 
|-
 
|-
| 104 || GetStatistics
+
| 104 || [3.0.0+] GetStatistics
 
|-
 
|-
 
| 111 || GetJid
 
| 111 || GetJid
 
|-
 
|-
| 120 || [7.0.0+] CreateNotificationReceiver
+
| 120 || [7.0.0+] [[#CreateNotificationReceiver]]
 +
|-
 +
| 151 || [8.0.0+] GetStateWithHandover
 +
|-
 +
| 152 || [8.0.0+] GetStateChangeEventWithHandover
 +
|-
 +
| 153 || [8.0.0+] GetDropEventWithHandover
 
|}
 
|}
 +
 +
[5.0.0+] CreateToken/DestroyToken now takes an additional 8-bytes of input and a PID.
  
 
== CreateNotificationReceiver ==
 
== CreateNotificationReceiver ==
Line 43: Line 53:
  
 
== INotificationReceiver ==
 
== INotificationReceiver ==
 +
This is "nn::npns::INotificationReceiver".
 +
 +
This was added with [7.0.0+].
 +
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
Line 92: Line 106:
 
|-
 
|-
 
| 25 || QueryIsTokenValid
 
| 25 || QueryIsTokenValid
 +
|-
 +
| 26 || [5.0.0+] ListenToMyApplicationId
 
|-
 
|-
 
| 31 || UploadTokenToBaaS
 
| 31 || UploadTokenToBaaS
Line 97: Line 113:
 
| 32 || DestroyTokenForBaaS
 
| 32 || DestroyTokenForBaaS
 
|-
 
|-
| 33 || [6.0.0+] CreateTokenForBaas
+
| 33 || [7.0.0+] CreateTokenForBaas
 
|-
 
|-
| 34 || [6.0.0+] SetBaasDeviceAccountIdList
+
| 34 || [7.0.0+] SetBaasDeviceAccountIdList
 
|-
 
|-
 
| 101 || Suspend
 
| 101 || Suspend
Line 107: Line 123:
 
| 103 || GetState
 
| 103 || GetState
 
|-
 
|-
| 104 || GetStatistics
+
| 104 || [3.0.0+] GetStatistics
 
|-
 
|-
| 105 || GetPlayReportRequestEvent
+
| 105 || [3.0.0+] GetPlayReportRequestEvent
 
|-
 
|-
 
| 111 || GetJid
 
| 111 || GetJid
Line 121: Line 137:
 
| 115 || DetachJid
 
| 115 || DetachJid
 
|-
 
|-
| 201 || RequestChangeStateForceTimed
+
| 120 || [7.0.0+] [[#CreateNotificationReceiver]]
 +
|-
 +
| 151 || [8.0.0+] GetStateWithHandover
 +
|-
 +
| 152 || [8.0.0+] GetStateChangeEventWithHandover
 +
|-
 +
| 153 || [8.0.0+] GetDropEventWithHandover
 
|-
 
|-
| 202 || RequestChangeStateForceAsync
+
| 201 || [3.0.0+] RequestChangeStateForceTimed
 +
|-
 +
| 202 || [3.0.0+] RequestChangeStateForceAsync
 
|}
 
|}
 +
 +
[5.0.0+] CreateToken/DestroyToken now takes an additional 8-bytes of input and a PID.
  
 
[[Category:Services]]
 
[[Category:Services]]

Revision as of 02:08, 15 June 2019

This is used for Push Notifications.

npns:u

This is "nn::npns::INpnsUser".

Cmd Name
1 ListenAll
2 ListenTo
3 Receive
4 ReceiveRaw
5 GetReceiveEvent
7 GetStateChangeEvent
21 CreateToken
23 DestroyToken
25 QueryIsTokenValid
26 [5.0.0+] ListenToMyApplicationId
101 Suspend
102 Resume
103 GetState
104 [3.0.0+] GetStatistics
111 GetJid
120 [7.0.0+] #CreateNotificationReceiver
151 [8.0.0+] GetStateWithHandover
152 [8.0.0+] GetStateChangeEventWithHandover
153 [8.0.0+] GetDropEventWithHandover

[5.0.0+] CreateToken/DestroyToken now takes an additional 8-bytes of input and a PID.

CreateNotificationReceiver

Returns an #INotificationReceiver.

INotificationReceiver

This is "nn::npns::INotificationReceiver".

This was added with [7.0.0+].

Cmd Name Notes
1 ListenTo Takes a total of 8-bytes of input, no output.
2 ListenToMyApplicationId Takes a total of 8-bytes of input and a PID, no output.
3 Receive Takes a total of 2-bytes of input and a type-0x6 output buffer.
4 GetReceiveEvent No input, returns an output handle.

npns:s

This is "nn::npns::INpnsSystem".

Cmd Name
1 ListenAll
2 ListenTo
3 Receive
4 ReceiveRaw
5 GetReceiveEvent
6 ListenUndelivered
7 GetStateChangeEvent
11 SubscribeTopic
12 UnsubscribeTopic
13 QueryIsTopicExist
21 CreateToken
22 CreateTokenWithApplicationId
23 DestroyToken
24 DestroyTokenWithApplicationId
25 QueryIsTokenValid
26 [5.0.0+] ListenToMyApplicationId
31 UploadTokenToBaaS
32 DestroyTokenForBaaS
33 [7.0.0+] CreateTokenForBaas
34 [7.0.0+] SetBaasDeviceAccountIdList
101 Suspend
102 Resume
103 GetState
104 [3.0.0+] GetStatistics
105 [3.0.0+] GetPlayReportRequestEvent
111 GetJid
112 CreateJid
113 DestroyJid
114 AttachJid
115 DetachJid
120 [7.0.0+] #CreateNotificationReceiver
151 [8.0.0+] GetStateWithHandover
152 [8.0.0+] GetStateChangeEventWithHandover
153 [8.0.0+] GetDropEventWithHandover
201 [3.0.0+] RequestChangeStateForceTimed
202 [3.0.0+] RequestChangeStateForceAsync

[5.0.0+] CreateToken/DestroyToken now takes an additional 8-bytes of input and a PID.