Local Notification in cocos creator

Hello Everyone,
I want to integrate local notification in a game to notify the user in case app is not opened for days or weeks,

It should work on both android and iOS platform. Can anyone help do the same. Thanks

You should use OS depended features, so you should do it in native codes.

Thanks for the quick reply. Can u suggest me a template where native work is done in CocosCreator for both the platforms. Thanks

Sorry, i do not find a template for it.