Via this forum post, I found this elegant tutorial, “Transform any Meteor App into a PWA”. It was very easy to follow and implement.
When I ran my app after implementing this, I saw this in my server console logs:
20200520-21:41:50.650(-7)? Exception in onStop callback: TypeError: iterator.return is not a function
I20200520-21:41:50.650(-7)? at Subscription.<anonymous> (packages/swydo:ddp-apollo/lib/server/createGraphQLPublication.js:56:27)
I20200520-21:41:50.650(-7)? at runWithEnvironment (packages/meteor.js:1286:24)
I20200520-21:41:50.650(-7)? at packages/meteor.js:1299:14
I20200520-21:41:50.650(-7)? at packages/ddp-server/livedata_server.js:1158:7
I20200520-21:41:50.650(-7)? at Array.forEach (<anonymous>)
I20200520-21:41:50.651(-7)? at Function._.each._.forEach (packages/underscore.js:139:11)
I20200520-21:41:50.651(-7)? at Subscription._callStopCallbacks (packages/ddp-server/livedata_server.js:1157:7)
I20200520-21:41:50.651(-7)? at Subscription._deactivate (packages/ddp-server/livedata_server.js:1147:10)
I20200520-21:41:50.651(-7)? at Session._stopSubscription (packages/ddp-server/livedata_server.js:873:18)
I20200520-21:41:50.651(-7)? at Subscription.stop (packages/ddp-server/livedata_server.js:1215:19)
I20200520-21:41:50.651(-7)? at packages/swydo:ddp-apollo/lib/server/createGraphQLPublication.js:68:24
I20200520-21:41:50.651(-7)? at /Users/myUser-2020/.meteor/packages/promise/.0.11.2.158ss2l.tikp++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40
Is there a best practices way of adding PWA to a Meteor/Swydo ddp-apollo app yet?
Thanks very much in advance for any info!