[ PLAY STEEM] Again! Push Notifications Issue Resolved!

in SteemitCryptoAcademy3 years ago (edited)

Hi, I am the developer of the PLAY STEEM mobile app.

These days the push notifications was not working properly due to the sudden death of the push process.

I thought I resolved the issue but actually I did not.

So I dug into the problem in deep.

As you might know I set up pm2 to restart the process when it dies. This is okay.

But the problem was the "throw" express in the dsteem library which is used to scan blockchain data.
The 'throw" expression makes the process stop but not dead! So pm2 could not restart the undead process.

How to resolve this issue?

I have to modify the dsteem library because there are a few "throw" statements to handle error cases. What I did is to put 'process.exit(1)" code when an error occurs.

For developers, I had to use "npm" instead of "yarn" to install dependencies. The repo is here:
https://github.com/EtainClub/dhive
(dhive is a fork from dsteem, and I modified it for PLAY STEEM)

So, this time i confirmed the "restart" when the problem occurs.

Moment of restarting!

The process stopped due to the following error:

RPCError: Unable to acquire database lock

And pm2 restarted the process!

2021-04-17T20:49:26: PM2 log: App [index:0] exited with code [1] via signal [SIGINT]
2021-04-17T20:49:26: PM2 log: App [index:0] starting in -fork mode-

The following is the screenshot of the process logs

After the restart, the process becomes working again!

Heroku screenshot

image.png


I guess this fixes the push notifications issue. This is not perfect solution because the errors still occur. There will be some lost message during the restarting. But it will keep alive to send push notifications!

Thank you for your patience.

Try and Support PLAY STEEM

Try the app by referring to these:

https://steemit.com/hive-108451/@etainclub/play-steem-iphone-test-app-release

  • Notice: After installing the app, the app might be stuck in login. In this case, try login again later some time.

https://steemit.com/hive-108451/@etainclub/play-steem-release-of-android-app-apk-for-steemit

image.png

The source code is open in the following site. If you have an issue about this app, please register the issue there. Or you can reply one of posts.
https://github.com/EtainClub/playsteem/issues

Notice

Thanks to the delegation by @steem-agora, I will vote a post regarding the PLAY STEEM app such as:

  • Post explaining the features of the app
  • Post finding bugs
  • Post suggesting features
  • Post for app designs

Please mention @etainclub so that I can vote your post.
And RESTEEM this post and follow @etainclub and @playsteemit which is the official account.

cc.

@steemcurator01
@steemcurator02
@steemcurator03
@steemcurator04
@steemcurator05
@steemcurator06
@steemcurator07
@steemitblog

Sort:  

Hi @etainclub, you are doing great work with PLAY STEEM.

Would you mind not posting in the SteemitCryptoAcademy Community as this is reserved for for course posts from the Crypto Professors and associated homework posts.

Maybe post in the Steemit Dev Community instead...

Thank you

i see. i will post in other communities.

at first i did post in dev community but it seems dead. Dev. community should be very active.

thank you for your support and interests.

This is a very nice post. You made the post with a very good idea. Your post will touch everyone's mind. Your post has especially attracted my attention.

thank you for your words! i am happy!

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.030
BTC 58659.71
ETH 3164.52
USDT 1.00
SBD 2.43