Skip to content

Commit fc3c4cc

Browse files
author
prasham
committed
1.1
1 parent f2752a8 commit fc3c4cc

File tree

4 files changed

+115
-83
lines changed

4 files changed

+115
-83
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ Currently it checks validity of existing token and prints the output.
77

88
In near future will serve as a console to send notification if existing token is valid or not.
99

10-
# [ChangeLog](changelog.md)
10+
[ChangeLog](changelog.md)
1111

12-
Functionality
12+
# Functionality
1313

1414
## Identifying the device
1515

1616
Using instance id api, it identifies device frrom given token. It will also give you details about the device.
1717

1818
Reference : [InstanceId Server reference-Device Info](https://developers.google.com/instance-id/reference/server#get_information_about_app_instances)
19+
1920
*More Details coming soon*
2021

2122
## Managing topics
@@ -25,6 +26,7 @@ Using above apis it will know topics subscribed to given device and will let you
2526

2627

2728
Reference : [InstanceId Server reference-Managing Topics](https://developers.google.com/instance-id/reference/server#create_relationship_maps_for_app_instances)
29+
2830
*This api currently supports adding topics, removing topics is not supported as of now*
2931

3032
## Construct and send notification
@@ -34,4 +36,4 @@ Construct notifications using `notification` and `data` payloads and will send i
3436

3537
More documentations coming soon
3638

37-
Test it at https://www.prashamhtrivedi.in/fcmutils/
39+
Test it at https://prashamtrivedi.github.io/fcmutils/

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## (1.1)12-09
2+
- Some bugfixing.
3+
- (Beta) Api Call logs, currently log for all API calls are being printed in Console. In future you can see & possibly copy calls.
4+
5+
16
## (1.0)16-06
27
- Ability to send notifications,
38
- Ability to subscribe multiple topics

index.html

+25-19
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<h2 class="mdl-typography--display-3">
4343
Welcome to FCM Utils
4444
<span class="mdl-typography--body-1">
45-
v1.0
45+
<a href="https://github.com/PrashamTrivedi/fcmutils/blob/master/changelog.md">v1.1</a>
4646
</span>
4747

4848
</h2>
@@ -151,7 +151,7 @@ <h3><a href="https://firebase.google.com/docs/cloud-messaging/http-server-ref">N
151151

152152
</div>
153153
<div class="sides">
154-
<div class="leftInverse" style="margin:0px 10px 0px 0px;">
154+
<div class="leftInverse" style="margin:0 10px 0 0;">
155155
<div class="leftInverse center mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="padding: 30px;">
156156
<input class="mdl-textfield__input" type="number" min="5" max="10" step="5" id="txtPriority" autocomplete="on">
157157
<label class="mdl-textfield__label" for="txtPriority">Priority</label>
@@ -164,7 +164,7 @@ <h3><a href="https://firebase.google.com/docs/cloud-messaging/http-server-ref">N
164164
</div>
165165
</div>
166166

167-
<div class="sides rightInverse" style="margin:0px 10px;">
167+
<div class="sides rightInverse" style="margin:0 10px;">
168168
<div class="leftInverse">
169169
<div class="leftInverse center mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
170170
<input class="mdl-textfield__input" type="text" id="txtCollapseKey" autocomplete="on">
@@ -177,11 +177,13 @@ <h3><a href="https://firebase.google.com/docs/cloud-messaging/http-server-ref">N
177177
Collapse Key
178178
</div>
179179
</div>
180-
<label class="rightInverse mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="contentAvailable" style="margin:50px 10px 0px;">
180+
<label class="rightInverse mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="contentAvailable"
181+
style="margin:50px 10px 0;">
181182
<input type="checkbox" id="contentAvailable" class="mdl-checkbox__input">
182183
<span class="mdl-checkbox__label">Content Available</span>
183184
</label>
184-
<label class="rightInverse mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="dryRun" style="margin:50px 10px 0px;">
185+
<label class="rightInverse mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="dryRun"
186+
style="margin:50px 10px 0;">
185187
<input type="checkbox" id="dryRun" class="mdl-checkbox__input">
186188
<span class="mdl-checkbox__label">Dry Run</span>
187189
</label>
@@ -199,17 +201,19 @@ <h4>Notification Payload</h4>
199201
<input class="mdl-textfield__input" type="text" id="txtBody" autocomplete="on">
200202
<label class="mdl-textfield__label" for="txtBody">Body</label>
201203
</div>
202-
<div class="center mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="margin:0px 10px 0px 0px; ">
204+
<div class="center mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
205+
style="margin:0 10px 0 0; ">
203206
<input class="mdl-textfield__input" type="text" id="txtSound" autocomplete="on">
204207
<label class="mdl-textfield__label" for="txtSound">Sound</label>
205208
</div>
206209
<div class="sides">
207210
<div>
208-
<div class="leftInverse mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="margin:0px 10px 0px 0px;">
211+
<div class="leftInverse mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
212+
style="margin:0 10px 0 0;">
209213
<input class="mdl-textfield__input" type="text" id="txtBadge" autocomplete="on">
210214
<label class="mdl-textfield__label" for="txtBadge">Badge(iOS)</label>
211215
</div>
212-
<div class="rightInverse" style="margin:20px 0px 0px 0px;">
216+
<div class="rightInverse" style="margin:20px 0 0 0;">
213217
<i id="badge" class="material-icons">help_outline</i>
214218
</div>
215219
<div class="mdl-tooltip mdl-tooltip--right" data-mdl-for="badge">
@@ -218,27 +222,29 @@ <h4>Notification Payload</h4>
218222

219223
</div>
220224
<div>
221-
<div class="leftInverse mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="margin:0px 10px 0px 5px;">
225+
<div class="leftInverse mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
226+
style="margin:0 10px 0 5px;">
222227
<input class="mdl-textfield__input" type="text" id="txtChannel" autocomplete="on">
223228
<label class="mdl-textfield__label" for="txtChannel">Channel Id(Android)</label>
224229
</div>
225-
<div class="rightInverse" style="margin:20px 0px 0px 0px;">
230+
<div class="rightInverse" style="margin:20px 0 0 0;">
226231
<i id="channelId" class="material-icons">help_outline</i>
227232
</div>
228233
<div class="mdl-tooltip mdl-tooltip--right" data-mdl-for="channelId">
229234
The notification's channel id (new in Android O).
230235
</div>
231236
</div>
232237
<div>
233-
<div class="leftInverse mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="margin:0px 10px 0px 5px;">
238+
<div class="leftInverse mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
239+
style="margin:0 10px 0 5px;">
234240
<input class="mdl-textfield__input" type="text" id="txtTag" autocomplete="on">
235241
<label class="mdl-textfield__label" for="txtTag">Tag(Android)</label>
236242

237243
</div>
238-
<div class="rightInverse" style="margin:20px 0px 0px 0px;">
239-
<i id="txtTag" class="material-icons">help_outline</i>
244+
<div class="rightInverse" style="margin:20px 0 0 0;">
245+
<i id="txtTagHelp" class="material-icons">help_outline</i>
240246
</div>
241-
<div class="mdl-tooltip mdl-tooltip--right" data-mdl-for="txtTag">
247+
<div class="mdl-tooltip mdl-tooltip--right" data-mdl-for="txtTagHelp">
242248
Identifier used to replace existing notifications in the notification drawe
243249
</div>
244250
</div>
@@ -273,7 +279,8 @@ <h4>Data Payload</h4>
273279
<input class="mdl-textfield__input" type="text" id="key1" autocomplete="on">
274280
<label class="mdl-textfield__label" for="key1">Key</label>
275281
</div>
276-
<div class="rightInverse mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="margin: 0px 10px;">
282+
<div class="rightInverse mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
283+
style="margin: 0 10px;">
277284
<input class="mdl-textfield__input" type="text" id="val1" autocomplete="on">
278285
<label class="mdl-textfield__label" for="val1">Value</label>
279286
</div>
@@ -308,9 +315,8 @@ <h4>Data Payload</h4>
308315
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.amber-purple.min.css" />
309316
<style>
310317
.center {
311-
margin: auto;
312318
width: 80%;
313-
margin-top: 30px;
319+
margin: 30px auto auto;
314320
}
315321

316322
.centerAutoWidth {
@@ -367,11 +373,11 @@ <h4>Data Payload</h4>
367373
}
368374
};
369375
(function() {
370-
var wf = document.createElement('script');
376+
const wf = document.createElement('script');
371377
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
372378
wf.type = 'text/javascript';
373379
wf.async = 'true';
374-
var s = document.getElementsByTagName('script')[0];
380+
const s = document.getElementsByTagName('script')[0];
375381
s.parentNode.insertBefore(wf, s);
376382
})();
377383
</script>

0 commit comments

Comments
 (0)