Code

MyStream | iOS Universal Social Network App Template + Web PHP version

MyStream | iOS Universal Social Network App Template + Web PHP version





iOS and Android versions can share the same database on back4app







25 May 2018
• Accordingly to the new EU GDPR terms, I've updated the 'tou.html' file and Documentation.
IMPORTANT: This means that if a User asks for his/her Account deletion, you must do it within 24 hours, as the GDPR's "Right to be forgotten" Article states (LINK: https://gdpr-info.eu/art-17-gdpr/)
18 May 2018
• Added the code to send push notifications when a user follows another user into OtherUserProfile.swift -> 'followButt()' method
16 May 2018
• Fixed a bug on the audio player in the Web PHP version by editing the 'echo' code for the audio part in the index.php, following.php, account.php and stream-details.php files
• Edited the follwing classes into 'material-kit.css' (I've just replaced '#' with '.'):
  .songSlider{
  .trackProgress{
• Edited the 'updatedTime()' function in the 'audio.js' file
5 April 2018
** WEB VERSION UPDATES:
• Commented out this piece of code in 'header.php':
   // REQUIRE HTTPS
   if ($_SERVER['HTTPS'] != "on") {
       $url = "https://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
       header("Location: $url");
       exit;
   }

and pasted it into 'index.php' and 'login.php'
• Replaced the code for showing videos in 'index.php', 'following.php', 'account.php', 'stream-details.php',  with the following code:
<div>
   <video id="media-video" controls style="max-width: 400px; border-radius: 8px;">
     <source src='.$videoURL.' type="video/mp4">
       </video>
</div> 
3 April 2018
• Updated to recommended settings with Xcode 9.3
• Updated the 3 Facebook SDKs (because of Swift 4.1 release):
FBSDKCoreKit.framework
FBSDKLoginKit.framework
FBSDKShareKit.framework
26 March 2018
• Added a Website PHP version where you can browse, like and comment streams (the mobile app is required to post streams)
• Updated the User guide
1 March 2018
• Added ".lowercased()" in the following line of code into "queryStreams()" nethod in Search.swift:
        let keywords = searchTxt.text!.lowercased().components(separatedBy: " ")
In this way you'll be able to search for users by typing their full name too


MyStream is an app template where you can post anything you would like to show to the world, like pictures, videos, audio recordings, and stickers, as well as any text you want.
Users can comment, like and share Streams, as well as report them and their Users to the Admin. You, as the Admin of the app, need to daily check your own Parse Dashboard for the reported content or users and take actions for them.

In addition to the mobile app, you can find a web PHP version where users can browse, comment and like Streams, check posts from the people they follow, report content and users. The website version has a javascript control that displays a different page in case of phones browsers detection, that page has the App Store badges where users can download the mobile app. Also, the website doesn’t allow people to post Streams, only the mobile version allow that.
You can check the demo website here: https://www.cubycode.com/mystream/index.php

Since its backend is by Parse you don’t have to buy any domain/hosting, there are NO PHP files to upload to a web server so you’ll save some money for server side.

MyStream is a native Xcode project, Swift language, Universal, Parse SDK hosted on http://back4app.com, super easy to customize.




I’m new to Xcode UI interface, any help?

Sure, start by reading this tutorial, it will surely help you get familiar with Xcode and its UI interface: https://hubpages.com/technology/iOS-About-Xcode-and-its-interface

About Parse SDK and back4app

Read this article for more info about back4app and Parse SDK: https://hubpages.com/technology/Parse-SDK-will-not-shutdown-in-thanks-to-back4app

Can I host Parse Server on my own server?

Yes, although I don’t provide support for the setup process, you can read the official Guide here: http://parseplatform.org

I get a Code signing error in Xcode

That’s a bug of Xcode 8 with macOS Sierra, check this sample video to see how to fix it: https://youtu.be/z2LemT1_LqA

What about free support for this template?

I can offer free support for bugs encountered in the original code. Instead, if you’ve edited the code and messed something up with it, I may apply some fee to fix it either via TeamViewer or by checking your app project files directly on my computer.

Should I use the latest version of Xcode to edit this template?

Yes, I always update my apps to the latest version of the IDE.





  • Xcode 9.x project – Swift
  • Universal – iOS 8.0+
  • AdMob Interstitial ads
  • Works with Parse Server hosted on back4app
  • Push Notifications for likes, comments and Messages
  • Chat Messages section
  • Post Pictures, Videos, Audio recordings, Stickers and Text
  • Settings screen to edit your profile, check your Activity, app version, and much more
  • Terms of Use HTML file (to be edited)
  • Report inappropriate/offensive users, comments and posts to the Admin
  • PDF User Guide included
  • PSD icon graphics included
  • Easy to customize, well commented code


  • Apple Mac with its latest OS version installed
  • The latest version of Xcode and some knowledge about its UI interface
  • Photoshop or any other image editor software
  • An Apple Developer account to submit apps to the App Store
  • An AdMob account to generate your own Interstitial UNIT ID
  • A free account on back4app.com









by
by
by
by
by
by