Want Onesignal show Opt In (Notification permission) on defined day of months untill Allowed

Hi mate!

My Question/ Iwant :
Suppose any user first open app that is not on Sunday, Tuesday or Thrusday, then it will show popup to Opt In.
Also I don’t want First week of Month, I want untill user Opted In, It always show to Opt in on Sunday, Tuesday & Thrusday, If user cancel to Opt In on first run and I want for defined date (Sunday, Tuesday & Thrusday) Only show max 2 time per day no matter how many time app open on defined day.

So In short: User should recived Notification permission on defined day- max 2 Time, untill Notification (Opt In) Allowed, keep showing on defined days of months.

So I want. When screen Intilized I’m using this, but instaed I normally want on screen intailize call for notification permission and opt win without any if else.

I want To use a clock So every month on day sunday if user not opted = False show request permission on month’s sunday only, how i do through clock?

Hi dear,

try this
blocks(66)

sorry, I hadn’t read it properly,
you only want the first Sunday of the month.

if today is Sunday and the day of the month is <= than 7 do..

No every sunday of month.

And I want on screen Intialize block like this :

And On Clock Do Like this, But not sure how designer properties of clock will set and block, so if user not OPT IN, It should check every sundays of Month (4-5) whater ever sunday fall in a month.

Can You please use same compont of Onesignal and Clock to send me exact block how I DO, also suggest what I do with Clock’s Designer properties.

But why check it with a clock? Whenever the app is opened, the Screen.Initialize event is always executed anyway.

When the app is opened, it checks if it’s Sunday and if it’s the first one of the month, then executes the code.

Can you please check my block? and designer properties of clock.

I want when first time screen itialized If user Accept notification OPT in then don’t show again, IF OPT in not selected then iT sould show on Every sunday of Month until OPT In.

Re-Uploaded, Block Please check comment and help

@RaYzZz Sorry to bother you again but once you get time please reply me. Thank you!

  • Since you’re using the clock without .Timer, you can also disable TimerAlwaysFire and TimerEnabled.
  • dayOfMonth <= 7 checks if you’re in the first week of the month.
  • HasOptedIn returns true/false, so instead of checking if it equals false, you can just use if not .HasOptedIn (but that’s a minor detail).
  • Finally, I see that you’re making the request even outside the Ifs, which I don’t understand.

Couldn’t you just always check if OptedIn in screen.Initialize without making exceptions? :grin:

@RaYzZz I’m making this : Suppose any user first open app that is not on Sunday, Tuesday or Thrusday, then it will show popup to Opt In. from outside request.

Also I don’t want First week of Month, I want untill user Opted In, It always show to Opt in on Sunday, Tuesday & Thrusday, If user cancel to Opt In on first run.

So Now I disable TimerAlwaysFire and TimerEnabled and here is my block, Please let me know It’ll show on that day, I mean will work?

I strongly recommend opening a topic in the community, because I’m not an expert :frowning_face_with_open_mouth:

But I have doubts,
If weekDay is 1, 3, or 5 and the user is not OptedIn, adding OneSignal.OptIn will subscribe them even without their consent.
They simply won’t see the notifications if they don’t enable them, but OneSignal will still send.

can you move this chat to Topic? If please move

of course, let’s see if someone can help you better

It Not worked.

Here is my updated question, I’m writting here so you don’t be confused what i want, but you can check what we try to do above :

My Question/ Iwant :
Suppose any user first open app that is not on Sunday, Tuesday or Thrusday, then it will show popup to Opt In.
Also I don’t want First week of Month, I want untill user Opted In, It always show to Opt in on Sunday, Tuesday & Thrusday, If user cancel to Opt In on first run and I want for defined date (Sunday, Tuesday & Thrusday) Only show max 2 time per day no matter how many time app open on defined day.

So In short: User should recived Notification permission on defined day- max 2 Time, untill Notification (Opt In) Allowed, keep showing on defined days of months.

What’s the reason of asking user every Sunday? My question sounds little rude​:face_savoring_food:

Let’s say I have installed your app, date of installation be wednesday, then am using it from that day till Friday or Saturday. Because on Sunday am too busy with my family matters, (example) then I didn’t open/use your app that Sunday, also same thing in next Sunday, I didn’t open your app 3 Sundays, but I use it in middle weeks :face_savoring_food::face_savoring_food:

It’s sounds interesting to me, if the app has get user intention then it possible, anyway add some logic’s that returns/close the screen in first app open, telling the user, if he/she declined the push that you’re one step to access our content, please allow us to push notifications

:green_heart:

LoL :rofl: in case that’s why i select 3 days.

User Not understand Politly so i have to take this tricky step.

If you can help me with above problem that will be great I tried myself and with @RaYzZz but not getting what exactly i want.

Please go through top of my post and read my scenerio, if not understand you can ask to me.