5.9 KiB
Overview
This is the Pypush sms-registration branch. This branch allows you to register your phone number to your Apple account as an iMessage alias.
sms-registration is not fully developed yet, and still contains bugs! If you encounter any sort of bug, please join our Discord, however please note we cannot get to everyone, so try to figure out any errors yourself before asking.
Please note: You will have to use a client to send messages from your phone. We recommend Beeper, which is the best solution to keep all your chat apps inside one place, including iMessage! You can also use BlueBubbles (which requires you to have a server Mac running 24/7) or Sunbird (which is closed source and requires you to be a beta tester). One of our community members is also currently working on a BlueBubbles fork that implements a version of Pypush within it, so no server is needed and number reregistration is automatically ran.
However, Beeper is completely free and easy to use, and comes packed with multiple features that rivals native apps. Beeper is currently in the process of removing the waitlist, so you will have to use an invite link shared to you in order to skip the waitlist until this change is made. This app is what most testing is done on, and is by far the most popular in the Android and iMessage community.
Installation
You will first install Pypush onto your machine. Please keep in mind that you will have to have a script running on a home server or PC 24/7 to keep your number active! See below for instructions.
PNRgateway
In order for Apple to verify your number, a specialized message has to be sent from your phone to Apple's "gateway number" and have the response captured. This number is different for each carrier, however the newest app version should automatically find your gateway number. If PNRgateway cannot find your gateway number, see below for help.
- Enable USB debugging/ADB on your phone. There are multiple online guides that guide you through this based on your phone.
- Install the APK. The message link containing the APK is located here, and the GitHub repository is here.
- Grant SMS permissions. This will be in the app info page, and on the newer version, there should be a button in the app that does this for you.
- Connect your phone to the same WiFi network as your host PC, and open the app.
Pypush
Make sure you have git and Python installed.
git clone -b sms-registration https://github.com/beeper/pypush
cd pypush
,python3 -m pip install -r requirements.txt
Number Registration
python3 demo.py --phone [ip]
. Replaceip
with your phone's local IP. (Usually this starts with192.168.x.x
, however it can also start with172
or10
.)- If the previous command ran successfully, you can now run
python3 demo.py --reregister
Please note: This last script is the script you will be running continuously. We recommend every 30 minutes.
Automatic registration
There should also be a file called reregister.py
, if you run this it should reregister you every 30 minutes. You can edit this file to rerun at any other interval. You can also use a cronjob to do this task for you in a more streamlined way if you are more familiar with IT.
Good to Know
You will have to reregister your number every so often. This can last anywhere between 10 minutes to 48 hours, and usually the longer you run the script, the longer it takes to deregister. We may implement a feature to automatically detect deregistration in the future.
If you ever have any type of error, delete the config.json file and run steps 3-4 again. This is really important.
Issues
This is still in the development stage, so expect issues and bugs. Here is a list of possible errors:
Timeout waiting for response from gateway
This means it took too long for Apple to respond from the gateway number, PNRgateway is not sending the message to the correct gateway, or the response is in an incorrect encoding. This is common, please reach out for help.
Connection Closed
This means the app crashed or could not parse the response data from the gateway. This is also common, and a recent bug has caused this error to happen excessively with non-Verizon carriers.
Failed to resolve host
This error occurs when you are not connected to the same network, the all is closed, or you are not using the correct IP.
Automatic gateway detection failed
This is because PNRgateway could not detect the correct gateway corresponding to your carrier. Please report this issue if you find it. To fix this issue, when you are on step 1 of number registration, append --gateway [number]
after the --ip
argument, and replace number
with the gateway number. (You can find your gateway number here)
Failed to load the dynamic library
This is a Unicorn error. We do not yet know exactly what causes this error, but on MacOS try to run sudo brew install unicorn
. This error usually occurs in MacOS VMs.
Failed to register
Delete config.json
and retry.
If you encounter any other errors, please try to find answers online for help.