MobilePro #100: Integrating ChatGPT in WhatsApp on Android, Flutter 3 on Devuan 4, TypeChat, and React Native vs Kotlin
Hi,
Welcome to the mobile app development world with _mobilepro 100! We are thrilled to present you with the 100th edition of our newsletter! It's been an incredible journey filled with insightful content, valuable discussions, and a growing community of like-minded individuals.
In this edition we cover mobile development community discussions on Integrating ChatGPT in WhatsApp on Android, Flutter 3 on Devuan 4, TypeChat, and React Native vs Kotlin.
Want to learn more about GPT-3? This edition to our GPT-3 tutorial helps you with GPT-3 and Programming. Looking to improve your Swift skills? Checkout this week's resources on Swift APIs.
We couldn't have reached this century milestone without you, our amazing readers! Your enthusiasm, support, and loyalty have been the driving force behind our success, and we are deeply grateful for that. Here's to the next hundred issues and beyond! Let's continue on this journey together, exploring new horizons, and making a positive impact.
If you liked this installment in our new series, fill in our survey below and stand a chance to gain free credit on your Packt account. We're committed to bringing our readers exactly what they want, so help us make the right choices.
Thanks,
Apurva Kadam
Editor-in-Chief, Packt
Tell us what you think!
We're always looking for ways to improve, and your feedback is invaluable to us. Would you take a few minutes to share your thoughts about the newsletter? Your responses will help us make the newsletter even better.
Register your interest in providing feedback, complete a questionnaire and receive a free credit in your Packt account!
Interested in Giving Us Feedback?
Mobile Developer Community Insights
Integrating ChatGPT in WhatsApp on Android – In this article you will find steps to create an interactive user experience with ChatGPT in WhatsApp on Android. By using a customised chatbot to fit your business needs, you can increase online ordering while reducing serving costs. Explore now.
Advantages of Using Agile Methodology in Mobile Application Development - Mobile application development teams require a reliable and efficient approach to deliver high-quality apps within tight deadlines to meet the increasing demand. Here, Agile methodology in mobile application development comes in handy! In this blog post, we will discover the advantages of using agile project management methodology and compare it to the traditional waterfall methodology. Learn more.
Flutter 3 on Devuan 4 - Flutter is one of the mobile app frameworks developed by Google which supports both Android and iOS. It is cross-platform and being advanced to be applied to other platforms. This tutorial depicts how to set up the Flutter App framework using Devuan 4 OS. Checkout the full tutorial here.
Using React Native to Create Cross-Platform Mobile Apps - React Native has revolutionized the quick-moving field of mobile app development by making it simple for programmers to construct cross-platform applications. In this thorough manual, we'll walk you through every step of learning React Native so you can create feature-rich, high-quality mobile applications that work flawlessly on both iOS and Android devices. Read more.
React Native vs Kotlin - In this article, you will walk through React Native vs. Kotlin – both languages are very popular for cross-platform app development and are also supported by big, established names in the market. This blog answers a burning question: which one to pick? Explore the comparison now.
TypeChat: Eliminating Hallucinations in AI with TypeScript - Modern AI systems face a challenge called "hallucinations", where a Large Language Model (LLM) generates made-up responses to prompts. While it's okay for creative prompts, like "create a story about flying elephants playing soccer", we need often need reliable and accurate responses. That's where Microsoft's TypeChat comes to the rescue with its schema engineering approach. Learn more.
Mobile Development Motivation
"Mobile development is not just about coding; it's about creating a better user experience that touches people's lives."
- Tim Cook, CEO of Apple Inc.
Food for Thought...
Cook's statement acknowledges the transformative power of mobile technology in connecting individuals, enhancing their daily routines, and enriching their experiences. By focusing on the user's needs and desires, mobile developers can create applications and services that resonate with users on a deeper level and contribute to a more profound and positive influence in the world. This quote encapsulates the philosophy behind successful mobile development, encouraging developers to not only focus on technical aspects but also to understand and prioritize the end-users' emotional and practical needs.
Mobile Tools
Here are some quick libs to get access to third party API services.
GitHubAPI - Implementation of GitHub REST API v3.
PXGoogleDirections - Google Directions API helper.
RandomUserSwift - Framework to Generate Random Users - An Unofficial SDK for randomuser.me.
reddift - reddit API wrapper.
Swifter Twitter - Twitter framework.
Swiftkube - Swift client for Kubernetes.
SwiftlySalesforce - Framework for rapid development of native iOS apps that integrate with Salesforce.
SwiftyInsta - Private and Tokenless Instagram RESTful API.
GPT-3 tutorial
GPT-3 and Programming
Almost all of GPT-3’s NLP capabilities are created in the Python programming language. But to enable wider accessibility, the API comes with pre-built support for all the major programming languages, so users can build GPT-3 powered applications using the programming language of their choice.
In this section, we will illustrate how this works by replicating an example with different programming languages. Just a heads-up: In each language-specific chapter, we assume you have a basic understanding of the programming language being discussed. If you don’t, you can safely skip the section.
How to use OpenAI API with Python?
Python is the most popular language for data science and machine learning tasks. Compared to conventional data-science programming languages like R and Stata, Python shines because it’s scalable and integrates well with databases. It is widely used and has a flourishing community of developers keeping its ecosystem up to date. Python is easy to learn and comes with useful data science libraries like Numpy and Pandas.
You can pair GPT-3 with Python using a library called Chronology that provides a simple, intuitive interface. Chronology can mitigate the monotonous work of writing all of your code from scratch every time. Its features include:
● It calls the OpenAI API asynchronously, allowing you to generate multiple prompt completions at the same time.
● You can create and modify training prompts easily; for example, modifying a training prompt used by a different example is fairly straightforward.
● It allows you to chain prompts together by plugging the output of one prompt into another.
Chronology is hosted on PyPI and supports Python 3.6 and above. To install the library, you can run the following command:
(base) PS D:\GPT-3 Python> pip install chronological
After installing the Python library via PyPI, let’s look at an example of how to prime GPT-3 to summarize a given text document at a second-grade reading level. We’ll show you to call the API, send the training prompt as a request, and get the summarized completion as an output. We’ve posted the code for you in a Github repository.. ...read more
Mobile Dev Industry Updates
Android
Indie Games Fund: Apply for support from Google Play’s $2M fund in Latin America - Today, we’re bringing back the Indie Games Fund for 2023. We will award $2 million dollars in non-dilutive cash awards in addition to hands-on support, to selected small games studios based in Latin America, helping them build and grow their businesses on our platform.
Capture, edit, play, and share, the Media Developer Center has it all! - Introducing the Media Developer Center, a new hub for documentation on Android media use cases and the place to find information you need to create best-in-class multidevice apps.
Microsoft
Test your ChatGPT plugins in the updated Chat Copilot - We’ve been hard at work improving the Chat Copilot reference application to demonstrate how you can use Semantic Kernel to build a fully featured chat experience. Now that its more feature complete, we’re elevating it to its own repo here.
See you next week!