Page 1 of 1

Arduino PushSafer-library how to activate option answer / force answer

Posted: 9. Nov 2022, 21:48
by StefanL38
Hello Everybody,

I have quite some programming experience with Delphi and C++.
So I know the general concepts of programming.

currently I started to explore the PushSafe-Arduini-Library
There is a Demo-Code inside the library.
I was able to successfully combile it and send Push-Notifications.

Though I don't understand all details. I was looking into the docs of the API
here
https://www.pushsafer.com/de/pushapi_ext#API-A

there is an option answer / force answer

force anser parameter "af"
I understand what a parameter is. But I have no idea how this parameter is applied to the

Code: Select all

struct PushSaferInput input;
struct of the PushSaferInput.
To me it seems as if this Demo-Code does not include all possible parameters in the struct.
But maybe I'm misunderstanding how it works fundamentally. Maybe it is done in the message itself like
input.message = "af=1" or something like this. No clue at all.

Can somebody explain this to me?

best regards Stefan

Re: Arduino PushSafer-library how to activate option answer / force answer

Posted: 10. Nov 2022, 17:25
by admin
Hi,

i updated the code on github.
Now you can use option answer / force answer and confirm parameter when sending push-notifications out of arduino.

Kevin