I have project in which users can upload posts, other users can comment on these posts.
I want to send automatic push notification to the user (who uploaded the post) whenever other users comment on his post.
The project will be running on mobile (Android and IOS)
How can I go about achieving this? what packages I should use?
I came across activitree:push package but adding it to my meteor project always fails with the following errors:
=> Errors while adding packages:
While loading package activitree:email@example.com:
error: Command failed: /Users/mzn/.meteor/packages/meteor-tool/.188.8.131.52hsx6.cly95j++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm rebuild --update-binary
…/ext/channel.cc:292:56: error: too few arguments to function call, expected 2, have 1
int try_to_connect = (int)info->Equals(Nan::True());
/Users/mzn/.meteor/packages/meteor-tool/.184.108.40.206hsx6.cly95j++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/include/node/v8.h:2712:3: note: 'Equals' declared here V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context, ^ /Users/mzn/.meteor/packages/meteor-tool/.220.127.116.11hsx6.cly95j++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT' #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) ^ 1 error generated. make: *** [Release/obj.target/grpc_node/ext/channel.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/mzn/.meteor/packages/meteor-tool/.18.104.22.168hsx6.cly95j++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:311:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Darwin 19.4.0
I am not sure about about the cause of the issue but I am guessing it could be node versioning issue which might cause me to downgrade which I prefer not to do so (if there are other ways to achieve my objective)
so in conclusion, how should I go with developing automatic push notification to particular users when certain events triggered in the application?