I'm developing some apps using GCM(google cloud messaging), and I want to send notifications about some informations of my company(new apps, promotions,...) to users of all current apps. If a device installs many apps, it will receive and notify the same notification many time, so users may feel uncomfortable. I want each notification to only notify one time in a device, is there any solution for this problem?
I see someone misunderstand my question. My problem is: a device installed many apps of my company, so if I send the same notification to each separate app(ex: notify that My company has published a new app) this device will notify many time with the same content.
My solution: use a shared memory(file) for all apps, each notification has an unique id, when a notification comes each app will check this file(create a new file if not exist), if this file content doesn't contain the unique id of this notification and the device allows this app to show notification, it will write to file this id and show this notification, else(this id exists or the device doesn't allow this app show notification) this app will ignore this notification. By this solution, I need to check if user allow an app show notification or not, can I check this?
Is there Any other solutions or suggestions to improve my solution?