PKHUD | Swift based reimplementation of the Apple HUD | iOS library
kandi X-RAY | PKHUD Summary
kandi X-RAY | PKHUD Summary
A Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8 and up.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PKHUD
PKHUD Key Features
PKHUD Examples and Code Snippets
Community Discussions
Trending Discussions on PKHUD
QUESTION
Current scenario: I have successfully implemented the project on one testing device(iOS) with all the functions working. Unfortunately, while running it on other registered devices for testing, it gives following issue
issue starting from the following arrow marked in given screenshot of the log:
How it's showing on registered device which is used for testing, that works:
How it's showing on rest of the registered devices which is used for testing, that does-not work:
What i tried to fix the error:
1.I have tried to add App sandbox and check incoming and outgoing connection, through entitlements file and build new provisioning
2.Set Arbitary in Transport in info.plist
FYI:The API url is in http:
Following is code used for notifications :
...ANSWER
Answered 2022-Feb-02 at 09:29You seem to be calling http
and not https
.
For a few years now, actual iOS device have ATS, which stands for App Transport Security.
That's a system that doesn't allow network requests if they are not https
and in addition a secure configuration of https
Apple has a nscurl
utility to diagnose issues with the server configuration and it also spits out config you need to put in Info.plist
QUESTION
(fyi Note:The app has been made in swift wireframe but now swiftUI has been added through hostview to handle complex structure and load data easily*).
What i want to do: when registered user clicks on notification button, it shows the small tableview on top right corner where updates from the discussion forum and new books uploaded from server are notified.. Now i want to save the book offline in json format(through document directory if possible) when user clicks on specific book that was shown in the notification. below is the notification area where updates are shown after clicking on notification bell
now when the user clicks on tableview cell("book was newly added"), the book should be saved offline in json format.. i want to load that file later in swift structure that is created to handle the data in swiftUI.
the data that comes from the api is in array form(huge nested data). every time the unique user logs in , it takes the user token to show the notification. Below is the API manager class..
i'm, providing link as the character count is beyond S.O limit.. https://github.com/JigarDave102/APImanager.git
What i tried and don't know how to take next step after this:
...ANSWER
Answered 2022-Jan-31 at 02:09Here is some code to download the book data from your server at:
"http://vadtaldhambooks.com/api/v1/get_book?book_id=58"
, and store it into a local file "testbookfile",
as a array of books. The code takes into consideration some of your previous questions/answers
and shows how to decode into an array of books the unusual json from the api, where the book
content txContent
is a string (where it should be an array of book content).
Run the code with fetchData()
in the DataModel
, then click the "Save to file button" to save the data into a
local file called "testbookfile". Then comment out the fetchData()
and use the loadFromFile()
instead.
Since the call to the server is "http" instead of the required "https", you need to temporarily set your Info.plist
with:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PKHUD
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page