Hold notifications then deliver later

Perhaps you could have a look at ideas suggested in the posts in Delayed push message.

My thoughts went to put it in a variable (which also been suggested in that post), but perhaps one of the other ideas could help you better.