Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Cannot send request using OneSignal REST api
Started by JTPenn Oct 24 2019 10:12 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

JTPenn

[GLOBAL: userInfoPane.html]
JTPenn
  • Contributor

  • 103 posts
  • Corona SDK

I have recently used OneSignal in my corona app.

I need to create notification using OneSignal REST API.

Whenever I send the request I get "Certificate required" error, and sometimes "Timed out" error

 

I tried to do the same request using different networks and devices but no luck :(

I tried to do the exact same request using https://reqbin.com/ ( or any online http request service ) and it worked.

 

What can I do ?

 

Thanks in advance.



[TOPIC: post.html]
#2

JTPenn

[GLOBAL: userInfoPane.html]
JTPenn
  • Contributor

  • 103 posts
  • Corona SDK

I temporarily fixed the problem using luasec https request method, but I still would like to use Corona's built in network.request function, any ideas what might be causing the problem ?




[topic_controls]
[/topic_controls]