Interfacing a mobile phone with php - php

dont really know if the title is apt but believe you will understand after reading
i am presently working on a project and am stuck.
I have a mobile phone connected to a computer, i want to be able to access text messages immediately they come into the mobile phone from the computer.
The project i am doing is php based, please how can i go about it?

You'd have to reverse engineer the protocols used by the phone's manufacturer to interface between the phone and the manufacturer's desktop software. Basically a difficult task. Thankfully there's lots of cell enthusiasts who've done this already for many makes. Look at the BitPim project for some guidance - it's GPL'd so you can pick at the source and see how they accomplish it.

ActiveXperts SMS Messaging Server http://www.activexperts.com/mmserver/, it is a windows service and uses database, you can attach a compatible mobile phone or gsm module.
You just have to write message in its database it will automatically send it and you can read a received message as well from database.
Super easy to use, i recommend it because i have used it in one of my project.

Related

PHP - interaction with google play market / google profile

I really tried, but didn't find any matching answers, most of them are about Android dev/single app info, google play scraping etc.
Anyway, excuse me for possible duplicate.
So, i can see the list of apps which are/were installed on my android device in google play interface ("My Apps"), so, is there any way to get that list in my PHP application, through some kind of API, maybe?
Question is not about tracking my own apps, but about tracking installs of any random app from the given list, on a specific device/google account
What i want to achieve:
User installs an app from the list
After some time/trigger, PHP backend checks, if this app is installed on user's device, and saves this info to DB
EDIT: It is meant, that user agreeds to share this information, to get some kind of reward, after installing an application.
Thanks for your attention.
No, which apps a user has chosen to add to their device is treated as confidential information, and a random person cannot just query that from a server. There are only two ways you could check this:
Do it like advertising libraries do. They use the Google Play referrer API which finds out the referral code which prompted the install, and sends this back via the Ad library in the app.
Or have your own app which is on the device and uses PackageManager.getInstalledApplications() to find out the applications on the device.

How to send push notification to a mobile app from a website

For a final year project I'm creating an app which has to function as a plugin to a learning management system such as moodle. Basically, once an assignment or new notes are being uploaded on the website, it should send push notification to a mobile app.
I have created an equivalent of a moodle website and you may upload files there. It's created in php and is running on XAMPP server while the app is created in jquery mobile with some javascript in it. I'm completely clueless when it comes to coding as I'm enterprise computing student and we were thought only the basics of programming and it's been two years since we had any sort of programming module. It doesn't even make sense why we have to do a prototype..
Anyway, could someone please recommend me the best approach to take to make this work? I've been trying to implement it by using this tutorial https://pusher.com/tutorials/realtime-notifications#/lang=php but it doesn't work. Is there anyone with expertise in this field and could let me know if this tutorial is the correct one or are there any better approaches. Your feedback will be gratefully appreciated. Thank you!
Sending push notifications in PHP isn't difficult at all, but you do need some vital information before you can send a push notification.
1) For iOS, you need to create a application on Apples system, and generate a PEM file from your application certificates, Generate .pem file Used to setup Apple PUSH Notification
2) You'll need an iOS application running on the phone you want to send push notifications to (I believe this is true)
3) When the user logs into the iOS app, you'll need to send the users deviceId to your web server and store it while also associating it with any courses the user is registered against in Moodle.
4) Finally, you use the users deviceId and the PEM file to send a request to Apples push notification server to send a push notification. see http://codular.com/sending-ios-push-notifications-with-php i.e. when a file is uploaded, grab a list of users that are registered on the course, then loop through their device_id's and send a push to each user.
Android is a little easier as you use an API_KEY rather than a certificate. But again you still need the users unique deviceId.
I've build a fair few API's for Mobile Applications, and this is how we do it. The key things are you need a mobile app, certification/api_key and each users deviceId.

Getting on-phone iPhone / Android contacts via PHP Web App / Facebook Deep Linking Workaround

Here's the situation. I'm working on a PHP-based web app for a company with a desire to setup an SMS share widget on their mobile site. The goal is to allow visitors to mass-share via SMS to their list of mobile contacts, in much the same way that Cloudsponge does this for e-mail contacts via the Google/Hotmail/Yahoo/Exchange APIs.
I was told repeatedly that this is impossible, but after a bit of research we've come across the possibility of accomplishing this via the Facebook deep integration built into newer smartphones and mobile devices.
SO, being completely inept, and coming into this with zero knowledge of how I might accomplish this... and having spent hours researching Google turning up very little / misleading information, I come to you. Where to look? What to do? Not looking for a blueprint here... just a hand (or two, or three :-) to point me in the right direction.
You can't access any system feature (GPS fine location, Contacts, Câmera) from a web app running in a mobile browser. Just for security reasons.

Website sync of contacts and reminders with iCloud

I'm building custom CRM web based system and have integrated synchronization of contacts and reminders with Google apps and need do the same with Apple iCloud. Is there any way how to do it? I haven't find any official API for this purpose, CRM is written in PHP, but I'm able to use python for this purpose as well.
To the best of my knowledge, there is no way to interface with iCloud directly; it can only be done through an iOS or Mac OS app, and by calling the correct iCloud Objective-C APIs with UI/NSDocument classes. Since you are not using Cocoa, let alone Objective-C, you will most likely not be able to do this. I may be wrong of course, as I haven't conducted an in-depth search into this.
I would recommend that you sync using the google contacts api. Then, you can tell iPhone people to use that instead of iCloud.
I agree with the first and second answer since I too haven't found any solution to access a large portion of the iCloud data via PHP. It seems the best solution would be to make an mobile app to do most of the work. This may save a lot of time in fact.
However if you can get your users to install an app then make your own cloud. There is an open source software like: own Cloud link below that is very good at it.
https://owncloud.org/
You may want to take a look at this project: https://github.com/adammck/ruby-icloud . It accesses iCloud reminders using Ruby.

How can i get Contact list from mobile?

I am developing web application which is need to get the contact information from mobile(iPhone,Noakia, etc...).My application is in PHP.Please advice me over this issues
Thanks in advance.
It is impossible to do in PHP. PHP is working server side while your mobile phone operates client side.
The only possible way would be for an ActiveX style script to run on the Windows Mobile device which then sends the data back to PHP. You'll probably be unable to do this under Javascript because of the sandbox: and ActiveX, in my eyes at least, should be similarly sandboxed (as you don't want sites arbitrarily getting your contact information).
If the phone has a sync system (such as the iPhone's contact list sync item), you may be able to utilise that for people to sync to your app.

Categories