Security questions for iOS app interaction with API - api

I am going to develop an iOS app for my web application so I will be working on an API Service that the iOS app will consume.
My question is :
How can I make sure to protect the access to my API ?
My main concern is just that I don't want someone else to use my API in order to duplicate the content to another app or website.
Thanks in advance,

Unfortunately this is very difficult to do. In short, you can't do this with 100% assurance because once your code is in the client's hands you have no control over it. Check out this StackOverflow question: Security When Using REST API in an iPhone Application
You may also find some value in this StackOverflow question as well: https://stackoverflow.com/questions/15390354/api-key-alternative/15390892#15390892

Related

Can we develop plugins for shopify using MERN stack?

I checked on various blogging site or on google but I did not get the answer of this question. So can anyone tell me if we can create plugin or POS type application for shopify websites using MERN stack?
If yes, can you please share links which will help me to look more into the same topic? It would be great help.
Thank you
You can create any kind of app you want with your stack. There is nothing special about that stack that would prevent you from developing a web application with it. It is after all suitable since you get a database, web server, and the scripting to tie it all into an API-driven platform.
I have built hundreds of Shopify Apps, and some have used MongoDB, some have used Express, and some have used React, so clearly, to me at least, if I have done it in production, you can too!

How can I add authentication module for my Sonos App

My company has a Sonos App on live. They want me to add authentication to the app. I red all the documentation but really its very hard for me, I cant add an authentication / Login module to this App. Maybe someone can help me for do that. Best regards:)
The authentication documentation is the best place to start. If you have specific questions about that documentation, you can post them here on SO.

Unlock and wakeup from progressive/installable web app for building calling app

I am at the moment researching about the new features of progressive web apps and they are pretty amazing and allow building web apps which are feeling very native. In particular, I'm considering at the moment to build a purely web based, installable calling app. Most features for something like that exist already:
Audio and video calls are very simple to do with WebRTC.
Using service workers and the push API, it is possible to send push notifications to a web app which is not even opened currently: https://developer.mozilla.org/de/docs/Web/API/Push_API
Web apps are becoming installable and can add themselves to your home screen: https://developer.mozilla.org/en-US/Apps/Progressive/Installable
Nevertheless, for building a serious calling app working on a mobile phone, it is necessary to be able to unlock/wakeup the screen of the phone in case of an incoming call. I unfortunately couldn't find anything out about a possibility for doing that; even not with features which are at the moment still considered as "experimental". Does anybody know if it is possible to do that at the moment, just using web technologies? And if not, if in the near future there are plans in browser technologies to allow something like that?
In my opinion, this is something which should be possible (at least in the future), since this would enable developers to build progressive web apps which are having more features and are even closer to native apps.
Currently there is no API that fit your requirement, the best thing you can do is to send notification continuously when someone call you (which I have seen in many other apps).
The most recently feature a web page can do when the phone is sleeping is to play background music or control the volume (MediaSession). But that is only in experiment stage.
I'm not sure allowing a webpage to "wake up" the phone from sleeping state is a good idea. The web move forward but there are things that should be handled by native apps.

Spotify Web API to control playback on connect devices

Is there any way to use an API to control playback on my registered spotify connect devices? I'm not trying to create or add a new connect devices but control playback to them.
Is there any official or reverse engineering discussion on how to do this?
As far as I can tell, there is no way to do this currently.
That said, it's also unclear if or when this feature will be added. Spotify hasn't updated its api code in months. It also appears that the login functionality is broken on my app too. Spotify doesn't seem to be easy to work with.

iOS App with web contents got rejected even the similar one is in appstore

I have developed a native iOS application based on client's requirement to show the timelines of different social networks (FB, Twitter, Instagram, Google + etc.) in the same application using a webview.
Say for example, when I click Facebook button it will show the web contents of Facebook and so. The client gave me a reference app which is doing the same thing and published in the appstore.
That is https://itunes.apple.com/sa/app/mysocial-for-ios/id687623816?mt=8
(Is it not a native app ?)
But when I tried to publish the similar app into appstore,it got rejected. I got the same reason mentioned in the link http://www.sencha.com/forum/archive/index.php/t-215050.html?s=b15f82172b608c468a36774a93c7a7c9
Could you just tell me what is wrong and why the other app got published and what to do for publishing it to the appstore.
Firstly according to the Apple rules any Application who uses Webview or Webkit with just loading links & with not any other features will get rejected immediately.
I did checked reference application you shared it presented & controlled in a way that doesn't looks like an web view based Application. May be they have developed it on any cross platform.
And there is possibility if they are using the web components to load the links but they are using it smartly & they are making it controllable. So there are every chances you can make proper research & try to get the idea how you can utilise the web components smartly & try to make similar application.
Important Note :
The most prior thing is it should be user friendly & easy navigation for users.
Hope this helps to everyone.