How to create two distinct types of users in an application who interact with one another?

I am considering how to create an iOS application where two distinct user types interact: service provider and consumer. For example, a consumer uploads a file which then notifies and becomes available to a small group of service providers, one of whom accepts, modifies and sends the file back to the consumer. Data would be private between the service provider and consumer.

Are there any resources such as tutorials that explain how to create two different types of users who could interact in this manner? Any insight into a viable approach is also much appreciated.

Thanks!
Answered by Claude31 in 668048022
If you want to create 2 types of users with different rights or roles, you'll probably have to register them on your server (a self declaration isn't robust enough).

Then, once user gets its credential, he/she will have access to some functions.

Then interaction could go through your server.

Take care to read carefully the Appstore guidelines, to check what you're authorised to do. If there is some commercial transaction, that needs to go through the Appstore.
Accepted Answer
If you want to create 2 types of users with different rights or roles, you'll probably have to register them on your server (a self declaration isn't robust enough).

Then, once user gets its credential, he/she will have access to some functions.

Then interaction could go through your server.

Take care to read carefully the Appstore guidelines, to check what you're authorised to do. If there is some commercial transaction, that needs to go through the Appstore.

Thank you @Claude31 for your general explanation; it proved to be useful.

Regarding your final point: do you mean that transactions specifically should use In App Purchase?

After reading the App Store Review Guidelines and specifically 3.1.3(d), I was actually planning to integrate an external payment service provider, given the 1 : 1 nature of our person-to-person services. Do you have experience to suggest that this would be rejected by the app store?

How to create two distinct types of users in an application who interact with one another?
 
 
Q